From e87ca42464b9ec2946ed5a4a921f292834bb494f Mon Sep 17 00:00:00 2001 From: Wei Yongjun Date: Sun, 25 Aug 2013 23:24:35 -0700 Subject: [PATCH] Input: cyttsp4 - remove useless NULL test from cyttsp4_watchdog_timer() Remove useless NULL test from cyttsp4_watchdog_timer(). Signed-off-by: Wei Yongjun Acked-by: Ferruh Yigit Signed-off-by: Dmitry Torokhov --- drivers/input/touchscreen/cyttsp4_core.c | 3 --- 1 file changed, 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); -- 2.30.2