Commit cc346b6a authored by Castulo J. Martinez's avatar Castulo J. Martinez Committed by Greg Kroah-Hartman

staging: speakup: Remove unnecessary parentheses

Remove unnecessary parentheses from if statements to make the code
easier to read.

Issue found by checkpatch.
Signed-off-by: default avatarCastulo J. Martinez <castulo.martinez@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b677f4ec
......@@ -27,7 +27,7 @@ void speakup_start_ttys(void)
for (i = 0; i < MAX_NR_CONSOLES; i++) {
if (speakup_console[i] && speakup_console[i]->tty_stopped)
continue;
if ((vc_cons[i].d) && (vc_cons[i].d->port.tty))
if (vc_cons[i].d && vc_cons[i].d->port.tty)
start_tty(vc_cons[i].d->port.tty);
}
}
......@@ -38,7 +38,7 @@ static void speakup_stop_ttys(void)
int i;
for (i = 0; i < MAX_NR_CONSOLES; i++)
if ((vc_cons[i].d && (vc_cons[i].d->port.tty)))
if (vc_cons[i].d && vc_cons[i].d->port.tty)
stop_tty(vc_cons[i].d->port.tty);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment