mirror of
https://github.com/torvalds/linux.git
synced 2024-12-13 22:53:20 +00:00
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>
This commit is contained in:
parent
1fd16a3125
commit
d3da1cbaef
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user