From 2b90bf28ac38b697a3f48a6664a02b374aa18f99 Mon Sep 17 00:00:00 2001 From: Bhagyashri Dighole Date: Wed, 6 Mar 2019 14:25:41 +0530 Subject: [PATCH] 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 --- drivers/staging/speakup/spk_ttyio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/speakup/spk_ttyio.c b/drivers/staging/speakup/spk_ttyio.c index 0057eb980bec..5a9eff08cb96 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; -- 2.30.2