]> git.baikalelectronics.ru Git - kernel.git/commit
usb: gadget: at91_udc: don't use [delayed_]work_pending()
authorTejun Heo <tj@kernel.org>
Sat, 22 Dec 2012 01:57:12 +0000 (17:57 -0800)
committerFelipe Balbi <balbi@ti.com>
Thu, 10 Jan 2013 10:40:46 +0000 (12:40 +0200)
commit5d68ed897c4e2fc3325901411b953c297cf6f46b
tree4e27baf4c3f4c0ee3724065403a69a635c9d4471
parentb3a37ab4c608013e16413ad9d8bde87b426263a4
usb: gadget: at91_udc: don't use [delayed_]work_pending()

There's no need to test whether a (delayed) work item in pending
before queueing, flushing or cancelling it.  Most uses are unnecessary
and quite a few of them are buggy.

Remove unnecessary pending tests from at91_udc.  Only compile tested.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Andrew Victor <linux@maxim.org.za>
Cc: Jean-Christophe Plagniol-Villard <plagnioj@jcrosoft.com>
Cc: linux-usb@vger.kernel.org
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/at91_udc.c