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: Castulo J. Martinez <castulo.martinez@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
b677f4ecf6
commit
cc346b6a10
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user