Input: cyttsp4 - remove useless NULL test from cyttsp4_watchdog_timer()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Mon, 26 Aug 2013 06:24:35 +0000 (23:24 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 26 Aug 2013 07:15:05 +0000 (00:15 -0700)
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>
drivers/input/touchscreen/cyttsp4_core.c

index 963da05..8238d98 100644 (file)
@@ -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);