staging: speakup: Comparison to NULL.
authorBhagyashri Dighole <digholebhagyashri@gmail.com>
Wed, 6 Mar 2019 08:55:41 +0000 (14:25 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 18 Mar 2019 06:05:19 +0000 (07:05 +0100)
Fix coding style issues, detected by checkpatch.pl "CHECK: Comparison to
NULL could be written !tty->ops->write"

Signed-off-by: Bhagyashri Dighole <digholebhagyashri@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/speakup/spk_ttyio.c

index 0057eb980bec930023bbe4c12453b3deabdaec5d..5a9eff08cb960db9090799ff9fef754d6169b3e9 100644 (file)
@@ -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;