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-Url: https://git.stricted.de/?a=commitdiff_plain;h=e87ca42464b9ec2946ed5a4a921f292834bb494f;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.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 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);