From ab6e3ced2c616421c0641ea4c963fb1efa07214b Mon Sep 17 00:00:00 2001 From: Xie XiuQi Date: Tue, 5 Nov 2013 16:54:56 +1100 Subject: [PATCH] drivers/input/touchscreen/cyttsp4_core.c: : remove unnecessary work pending test Remove unnecessary work pending test before calling schedule_work(). It has been tested in queue_work_on() already. Signed-off-by: Xie XiuQi Reviewed-by: Tejun Heo Cc: Ferruh Yigit Cc: Dmitry Torokhov Signed-off-by: Andrew Morton --- drivers/input/touchscreen/cyttsp4_core.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/input/touchscreen/cyttsp4_core.c b/drivers/input/touchscreen/cyttsp4_core.c index d038575f49db..f8ed30f24c8c 100644 --- a/drivers/input/touchscreen/cyttsp4_core.c +++ b/drivers/input/touchscreen/cyttsp4_core.c @@ -1246,8 +1246,7 @@ static void cyttsp4_watchdog_timer(unsigned long handle) dev_vdbg(cd->dev, "%s: Watchdog timer triggered\n", __func__); - if (!work_pending(&cd->watchdog_work)) - schedule_work(&cd->watchdog_work); + schedule_work(&cd->watchdog_work); return; } -- 2.39.5