sja1000: don't use [delayed_]work_pending()
authorTejun Heo <tj@kernel.org>
Sat, 22 Dec 2012 01:56:53 +0000 (17:56 -0800)
committerTejun Heo <tj@kernel.org>
Fri, 28 Dec 2012 21:40:15 +0000 (13:40 -0800)
commit1cab3f9fcc7ecaf70c77a10032b4757f769e345b
tree0fd2745e5a83d59f01145e6005f4c0a0d9f481af
parentecccd1248d6e6986130ffcc3b0d003cb46a485c0
sja1000: 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 sja1000.  Only compile tested.

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: "David S. Miller" <davem@davemloft.net>
Cc: Wolfgang Grandegger <wg@grandegger.com>
Cc: netdev@vger.kernel.org
drivers/net/can/sja1000/peak_pci.c