diff options
author | Tejun Heo <tj@kernel.org> | 2012-12-21 20:56:53 -0500 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2012-12-28 16:40:15 -0500 |
commit | 1cab3f9fcc7ecaf70c77a10032b4757f769e345b (patch) | |
tree | 0fd2745e5a83d59f01145e6005f4c0a0d9f481af /drivers/net/can | |
parent | ecccd1248d6e6986130ffcc3b0d003cb46a485c0 (diff) |
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
Diffstat (limited to 'drivers/net/can')
-rw-r--r-- | drivers/net/can/sja1000/peak_pci.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/can/sja1000/peak_pci.c b/drivers/net/can/sja1000/peak_pci.c index d84888f03d92..600ac7226e5c 100644 --- a/drivers/net/can/sja1000/peak_pci.c +++ b/drivers/net/can/sja1000/peak_pci.c | |||
@@ -339,8 +339,7 @@ static void peak_pciec_set_leds(struct peak_pciec_card *card, u8 led_mask, u8 s) | |||
339 | */ | 339 | */ |
340 | static void peak_pciec_start_led_work(struct peak_pciec_card *card) | 340 | static void peak_pciec_start_led_work(struct peak_pciec_card *card) |
341 | { | 341 | { |
342 | if (!delayed_work_pending(&card->led_work)) | 342 | schedule_delayed_work(&card->led_work, HZ); |
343 | schedule_delayed_work(&card->led_work, HZ); | ||
344 | } | 343 | } |
345 | 344 | ||
346 | /* | 345 | /* |