From f952ec5f429cf961e1a812591a39c6c5c5852c9c Mon Sep 17 00:00:00 2001 From: Aastha Gupta Date: Mon, 18 Sep 2017 01:30:35 +0530 Subject: 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 --- drivers/staging/speakup/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/staging/speakup') 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); -- cgit