From: Aastha Gupta Date: Sun, 17 Sep 2017 20:00:35 +0000 (+0530) Subject: staging: speakup: remove NULL comparison X-Git-Tag: v4.15-rc1~142^2~316 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=f952ec5f429cf961e1a812591a39c6c5c5852c9c;p=linux.git staging: speakup: remove NULL comparison This was done using cocccinelle script: @@ identifier arg; @@ -arg==NULL +!arg Signed-off-by: Aastha Gupta Reviewed-by: Samuel Thibault Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/speakup/main.c b/drivers/staging/speakup/main.c index 938a0aed7de5..e215d05fcffe 100644 --- a/drivers/staging/speakup/main.c +++ b/drivers/staging/speakup/main.c @@ -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);