1
0
Fork 0

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 <digholebhagyashri@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
hifive-unleashed-5.2
Bhagyashri Dighole 2019-03-06 14:25:41 +05:30 committed by Greg Kroah-Hartman
parent fbdc55155c
commit 2b90bf28ac
1 changed files with 1 additions and 1 deletions

View 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;