diff options
author | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2009-10-07 18:41:10 -0400 |
---|---|---|
committer | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2009-10-14 17:10:48 -0400 |
commit | 9fb551bf72929b316abb6d96cfb2ec05e896042a (patch) | |
tree | 63c52c2b3c6ee05b11176ce16fa3eb9c7b69edad /drivers/firewire/core-card.c | |
parent | 7e44c0b56b07a5e34de9943cfb2fee72e71a9f0e (diff) |
firewire: normalize style of queue_work wrappers
A few stylistic changes to unify some code patterns in the subsystem:
- The similar queue_delayed_work helpers fw_schedule_bm_work,
schedule_iso_resource, and sbp2_queue_work now have the same call
convention.
- Two conditional calls of schedule_iso_resource are factored into
another small helper.
- An sbp2_target_get helper is added as counterpart to
sbp2_target_put.
Object size of firewire-core is decreased a little bit, object size of
firewire-sbp2 remains unchanged.
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Diffstat (limited to 'drivers/firewire/core-card.c')
-rw-r--r-- | drivers/firewire/core-card.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/firewire/core-card.c b/drivers/firewire/core-card.c index e4864e894e4f..33898b63cdf7 100644 --- a/drivers/firewire/core-card.c +++ b/drivers/firewire/core-card.c | |||
@@ -211,11 +211,8 @@ static const char gap_count_table[] = { | |||
211 | 211 | ||
212 | void fw_schedule_bm_work(struct fw_card *card, unsigned long delay) | 212 | void fw_schedule_bm_work(struct fw_card *card, unsigned long delay) |
213 | { | 213 | { |
214 | int scheduled; | ||
215 | |||
216 | fw_card_get(card); | 214 | fw_card_get(card); |
217 | scheduled = schedule_delayed_work(&card->work, delay); | 215 | if (!schedule_delayed_work(&card->work, delay)) |
218 | if (!scheduled) | ||
219 | fw_card_put(card); | 216 | fw_card_put(card); |
220 | } | 217 | } |
221 | 218 | ||