summaryrefslogtreecommitdiff
path: root/drivers/staging/speakup
diff options
context:
space:
mode:
authorAastha Gupta <aastha.gupta4104@gmail.com>2017-09-18 01:30:35 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-09-18 11:50:40 +0200
commitf952ec5f429cf961e1a812591a39c6c5c5852c9c (patch)
tree484dd4b933949e459c0eedd72cc022298d891a83 /drivers/staging/speakup
parent08710da3cf932149de3440bbaec4dfdfba5a33df (diff)
staging: speakup: remove NULL comparison
This was done using cocccinelle script: @@ identifier arg; @@ -arg==NULL +!arg Signed-off-by: Aastha Gupta <aastha.gupta4104@gmail.com> Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/speakup')
-rw-r--r--drivers/staging/speakup/main.c2
1 files changed, 1 insertions, 1 deletions
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);