Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <xiexiuqi@huawei.com>
Reviewed-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Xie XiuQi and committed by
Dmitry Torokhov
0221e670 bdb5c57f

+1 -2
+1 -2
drivers/input/touchscreen/cyttsp4_core.c
··· 1246 1246 1247 1247 dev_vdbg(cd->dev, "%s: Watchdog timer triggered\n", __func__); 1248 1248 1249 - if (!work_pending(&cd->watchdog_work)) 1250 - schedule_work(&cd->watchdog_work); 1249 + schedule_work(&cd->watchdog_work); 1251 1250 1252 1251 return; 1253 1252 }