mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
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 <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
b677f4ecf6
commit
cc346b6a10
1 changed files with 2 additions and 2 deletions
|
|
@ -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 a new issue