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>
This commit is contained in:
Bhagyashri Dighole 2019-03-06 14:25:41 +05:30 committed by Greg Kroah-Hartman
parent fbdc55155c
commit 2b90bf28ac

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;