Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a468f328 authored by Robert Love's avatar Robert Love Committed by James Bottomley
Browse files

[SCSI] fcoe: Use setup_timer() and mod_timer()



Use helper functions for watchdog timer setup.

Signed-off-by: default avatarRobert Love <robert.w.love@intel.com>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@HansenPartnership.com>
parent fc47ff6b
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -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();