From: Wei Yongjun Date: Mon, 26 Aug 2013 06:24:35 +0000 (-0700) Subject: Input: cyttsp4 - remove useless NULL test from cyttsp4_watchdog_timer() X-Git-Tag: v4.6-rc1~9^2~811 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e87ca42464b9ec2946ed5a4a921f292834bb494f;p=platform%2Fkernel%2Flinux-exynos.git 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 --- diff --git a/drivers/input/touchscreen/cyttsp4_core.c b/drivers/input/touchscreen/cyttsp4_core.c index 963da05..8238d98 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);