diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2013-08-26 02:24:35 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2013-08-26 03:15:05 -0400 |
commit | e87ca42464b9ec2946ed5a4a921f292834bb494f (patch) | |
tree | 5022255268600e744482f859932f1074cb39c5c5 /drivers/input/touchscreen/cyttsp4_core.c | |
parent | d4879c9e0fee98dca512acd7c9b045c1b73091d6 (diff) |
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>
Diffstat (limited to 'drivers/input/touchscreen/cyttsp4_core.c')
-rw-r--r-- | drivers/input/touchscreen/cyttsp4_core.c | 3 |
1 files changed, 0 insertions, 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) | |||
1246 | 1246 | ||
1247 | dev_vdbg(cd->dev, "%s: Watchdog timer triggered\n", __func__); | 1247 | dev_vdbg(cd->dev, "%s: Watchdog timer triggered\n", __func__); |
1248 | 1248 | ||
1249 | if (!cd) | ||
1250 | return; | ||
1251 | |||
1252 | if (!work_pending(&cd->watchdog_work)) | 1249 | if (!work_pending(&cd->watchdog_work)) |
1253 | schedule_work(&cd->watchdog_work); | 1250 | schedule_work(&cd->watchdog_work); |
1254 | 1251 | ||