Commit 2b90bf28 authored by Bhagyashri Dighole's avatar Bhagyashri Dighole Committed by Greg Kroah-Hartman

staging: speakup: Comparison to NULL.

Fix coding style issues, detected by checkpatch.pl "CHECK: Comparison to
NULL could be written !tty->ops->write"
Signed-off-by: default avatarBhagyashri Dighole <digholebhagyashri@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent fbdc5515
......@@ -47,7 +47,7 @@ static int spk_ttyio_ldisc_open(struct tty_struct *tty)
{
struct spk_ldisc_data *ldisc_data;
if (tty->ops->write == NULL)
if (!tty->ops->write)
return -EOPNOTSUPP;
speakup_tty = tty;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment