aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/speakup/serialio.c
diff options
context:
space:
mode:
authorShraddha Barke <shraddha.6596@gmail.com>2015-09-11 11:32:27 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-09-12 18:25:00 -0700
commit114885e08c0e7d55775373f5cea8fa3c0b1ef1e8 (patch)
treeb6c02f0d833b75dced17208a8674a461a24a1742 /drivers/staging/speakup/serialio.c
parentStaging: speakup: devsynth.c: Remove explicit NULL comparison (diff)
downloadlinux-dev-114885e08c0e7d55775373f5cea8fa3c0b1ef1e8.tar.xz
linux-dev-114885e08c0e7d55775373f5cea8fa3c0b1ef1e8.zip
Staging: speakup: serialio.c: Remove explicit NULL comparison
Remove explicit NULL comparison and write it in its simpler form. Replacement done with coccinelle: @replace_rule@ expression e; @@ -e == NULL + !e Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/speakup/serialio.c')
-rw-r--r--drivers/staging/speakup/serialio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/speakup/serialio.c b/drivers/staging/speakup/serialio.c
index 66ac999a0323..3b5835b28128 100644
--- a/drivers/staging/speakup/serialio.c
+++ b/drivers/staging/speakup/serialio.c
@@ -101,7 +101,7 @@ static void start_serial_interrupt(int irq)
{
int rv;
- if (synth->read_buff_add == NULL)
+ if (!synth->read_buff_add)
return;
rv = request_irq(irq, synth_readbuf_handler, IRQF_SHARED,
@@ -127,7 +127,7 @@ void spk_stop_serial_interrupt(void)
if (speakup_info.port_tts == 0)
return;
- if (synth->read_buff_add == NULL)
+ if (!synth->read_buff_add)
return;
/* Turn off interrupts */