Commit f952ec5f authored by Aastha Gupta's avatar Aastha Gupta Committed by Greg Kroah-Hartman

staging: speakup: remove NULL comparison

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

-arg==NULL
+!arg
Signed-off-by: default avatarAastha Gupta <aastha.gupta4104@gmail.com>
Reviewed-by: default avatarSamuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 08710da3
......@@ -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);
......
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