From: Castulo J. Martinez Date: Sat, 16 Sep 2017 00:16:54 +0000 (-0700) Subject: staging: speakup: Remove unnecessary parentheses X-Git-Tag: rel_imx_4.19.35_1.1.0~11324^2~288 X-Git-Url: https://git.somdevices.com/?a=commitdiff_plain;h=cc346b6a100527916c86d55e6f2f24ac72b1ca1f;p=linux.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/speakup/buffers.c b/drivers/staging/speakup/buffers.c index f459e4004bfa..6137fa83c609 100644 --- a/drivers/staging/speakup/buffers.c +++ b/drivers/staging/speakup/buffers.c @@ -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); }