Commit 114885e0 authored by Shraddha Barke's avatar Shraddha Barke Committed by Greg Kroah-Hartman
Browse files

Staging: speakup: serialio.c: Remove explicit NULL comparison

Remove explicit NULL comparison and write it in its simpler form.
Replacement done with coccinelle:

expression e;

-e == NULL
+ !e
Signed-off-by: default avatarShraddha Barke <>
Signed-off-by: default avatarGreg Kroah-Hartman <>
parent 562c4798
......@@ -101,7 +101,7 @@ static void start_serial_interrupt(int irq)
int rv;
if (synth->read_buff_add == NULL)
if (!synth->read_buff_add)
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)
if (synth->read_buff_add == NULL)
if (!synth->read_buff_add)
/* Turn off interrupts */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment