From: Xie XiuQi Date: Tue, 19 Nov 2013 21:15:43 +0000 (-0800) Subject: Input: cyttsp4 - remove unnecessary work pending test X-Git-Tag: v4.6-rc1~9^2~748 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0221e670cd25bb41062031eaa653f6447707abc6;p=platform%2Fkernel%2Flinux-exynos.git Input: cyttsp4 - 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 Signed-off-by: Andrew Morton Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/touchscreen/cyttsp4_core.c b/drivers/input/touchscreen/cyttsp4_core.c index 42d830e..a035a39 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; }