Skip to content

Commit

Permalink
[SCSI] fcoe: Use setup_timer() and mod_timer()
Browse files Browse the repository at this point in the history
Use helper functions for watchdog timer setup.

Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
  • Loading branch information
Robert Love authored and James Bottomley committed Mar 10, 2009
1 parent fc47ff6 commit a468f32
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions drivers/scsi/fcoe/libfcoe.c
Original file line number Diff line number Diff line change
Expand Up @@ -1435,11 +1435,9 @@ static int __init fcoe_init(void)
*/
fcoe_dev_setup();

init_timer(&fcoe_timer);
fcoe_timer.data = 0;
fcoe_timer.function = fcoe_watchdog;
fcoe_timer.expires = (jiffies + (10 * HZ));
add_timer(&fcoe_timer);
setup_timer(&fcoe_timer, fcoe_watchdog, 0);

mod_timer(&fcoe_timer, jiffies + (10 * HZ));

/* initiatlize the fcoe transport */
fcoe_transport_init();
Expand Down

0 comments on commit a468f32

Please sign in to comment.