]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
firewire: cdev: simplify a schedule_delayed_work wrapper
authorStefan Richter <stefanr@s5r6.in-berlin.de>
Sun, 11 Jan 2009 12:44:46 +0000 (13:44 +0100)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Tue, 24 Mar 2009 19:56:46 +0000 (20:56 +0100)
commit81610b8fbfc027a67707ff567d490819a3d55844
treeb828ef4868938534fb17d75659246715179a29f5
parent5d9cb7d276a9c465fef5a771792eac2cf1929f2b
firewire: cdev: simplify a schedule_delayed_work wrapper

The kernel API documentation says that queue_delayed_work() returns 0
(only) if the work was already queued.  The return codes of
schedule_delayed_work() are not documented but the same.

In init_iso_resource(), the work has never been queued yet, hence we
can assume schedule_delayed_work() to be a guaranteed success there.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
drivers/firewire/fw-cdev.c