aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Colic <colic.christian@gmail.com>2015-11-19 17:18:43 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-01-28 22:40:31 -0800
commitd3da1cbaef8d92b1bb4103feee03b888f5bead24 (patch)
tree58bfdac97bedca6c5f91c518128ce6180068caea
parentstaging: speakup: (coding style) Add braces around all arms of if-statement (diff)
downloadlinux-dev-d3da1cbaef8d92b1bb4103feee03b888f5bead24.tar.xz
linux-dev-d3da1cbaef8d92b1bb4103feee03b888f5bead24.zip
staging: speakup: (coding style) Rewrite comparisons to NULL
Rewrite comparisons to NULL so they dont show any checkpatch errors anymore. "vc_cons[i].d != NULL" => "vc_cons[i].d" Signed-off-by: Christian Colic <colic.christian@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/speakup/buffers.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/speakup/buffers.c b/drivers/staging/speakup/buffers.c
index 8565c2343968..723d5df44221 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 != NULL) && (vc_cons[i].d->port.tty != NULL))
+ 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 != NULL) && (vc_cons[i].d->port.tty != NULL))
+ if ((vc_cons[i].d && (vc_cons[i].d->port.tty)))
stop_tty(vc_cons[i].d->port.tty);
}