staging: speakup: remove NULL comparison

This was done using cocccinelle script:
@@
identifier arg;
@@

-arg==NULL
+!arg

Signed-off-by: Aastha Gupta <[email protected]>
Reviewed-by: Samuel Thibault <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
Aastha Gupta 2017-09-18 01:30:35 +05:30 • committed by Greg Kroah-Hartman
commit f952ec5f42

View file

@ -2096,7 +2096,7 @@ speakup_key(struct vc_data *vc, int shift_state, int keycode, u_short keysym,
u_char shift_info, offset;
int ret = 0;
if (synth == NULL)
if (!synth)
return 0;
spin_lock_irqsave(&speakup_info.spinlock, flags);