瀏覽代碼

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>
Wei Yongjun 12 年之前
父節點
當前提交
e87ca42464
共有 1 個文件被更改,包括 0 次插入3 次删除
  1. 0 3
      drivers/input/touchscreen/cyttsp4_core.c

+ 0 - 3
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__);
 	dev_vdbg(cd->dev, "%s: Watchdog timer triggered\n", __func__);
 
 
-	if (!cd)
-		return;
-
 	if (!work_pending(&cd->watchdog_work))
 	if (!work_pending(&cd->watchdog_work))
 		schedule_work(&cd->watchdog_work);
 		schedule_work(&cd->watchdog_work);