summaryrefslogtreecommitdiff
path: root/drivers/input
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2013-08-26 10:24:35 +0400
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2013-08-26 11:15:05 +0400
commite87ca42464b9ec2946ed5a4a921f292834bb494f (patch)
tree5022255268600e744482f859932f1074cb39c5c5 /drivers/input
parentd4879c9e0fee98dca512acd7c9b045c1b73091d6 (diff)
downloadlinux-e87ca42464b9ec2946ed5a4a921f292834bb494f.tar.xz
Input: cyttsp4 - remove useless NULL test from cyttsp4_watchdog_timer()
Remove useless NULL test from cyttsp4_watchdog_timer(). Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Acked-by: Ferruh Yigit <fery@cypress.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input')
-rw-r--r--drivers/input/touchscreen/cyttsp4_core.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/input/touchscreen/cyttsp4_core.c b/drivers/input/touchscreen/cyttsp4_core.c
index 963da052c15e..8238d9881bcb 100644
--- a/drivers/input/touchscreen/cyttsp4_core.c
+++ b/drivers/input/touchscreen/cyttsp4_core.c
@@ -1246,9 +1246,6 @@ static void cyttsp4_watchdog_timer(unsigned long handle)
dev_vdbg(cd->dev, "%s: Watchdog timer triggered\n", __func__);
- if (!cd)
- return;
-
if (!work_pending(&cd->watchdog_work))
schedule_work(&cd->watchdog_work);