Skip to content

Commit

Permalink
Input: cyttsp4 - remove unnecessary work pending test
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Xie XiuQi authored and Dmitry Torokhov committed Nov 21, 2013
1 parent bdb5c57 commit 0221e67
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/input/touchscreen/cyttsp4_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 0221e67

Please sign in to comment.