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

Commit a76aec2a authored by Allen Pais's avatar Allen Pais Committed by David S. Miller
Browse files

drivers: net: dmfe: use setup_timer() helper.



Use setup_timer function instead of initializing timer with the
    function and data fields.

Signed-off-by: default avatarAllen Pais <allen.lkml@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 34b0cf06
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -596,10 +596,8 @@ static int dmfe_open(struct net_device *dev)
	netif_wake_queue(dev);

	/* set and active a timer process */
	init_timer(&db->timer);
	setup_timer(&db->timer, dmfe_timer, (unsigned long)dev);
	db->timer.expires = DMFE_TIMER_WUT + HZ * 2;
	db->timer.data = (unsigned long)dev;
	db->timer.function = dmfe_timer;
	add_timer(&db->timer);

	return 0;