From: Bhagyashri Dighole Date: Wed, 6 Mar 2019 08:55:41 +0000 (+0530) Subject: staging: speakup: Comparison to NULL. X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=2b90bf28ac38b697a3f48a6664a02b374aa18f99;p=linux.git 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: Bhagyashri Dighole Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/speakup/spk_ttyio.c b/drivers/staging/speakup/spk_ttyio.c index 0057eb980bec9..5a9eff08cb960 100644 --- a/drivers/staging/speakup/spk_ttyio.c +++ b/drivers/staging/speakup/spk_ttyio.c @@ -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;