Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0221e670 authored by Xie XiuQi's avatar Xie XiuQi Committed by Dmitry Torokhov
Browse files

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: default avatarXie XiuQi <xiexiuqi@huawei.com>
Reviewed-by: default avatarTejun Heo <tj@kernel.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent bdb5c57f
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1246,7 +1246,6 @@ 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);

	return;