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

drivers : net: niu: 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 27dd0852
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -6123,10 +6123,8 @@ static int niu_open(struct net_device *dev)

	err = niu_init_hw(np);
	if (!err) {
		init_timer(&np->timer);
		setup_timer(&np->timer, niu_timer, (unsigned long)np);
		np->timer.expires = jiffies + HZ;
		np->timer.data = (unsigned long) np;
		np->timer.function = niu_timer;

		err = niu_enable_interrupts(np, 1);
		if (err)