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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);