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

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

drivers: net: bnx2x: 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 66f06890
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -12414,10 +12414,8 @@ static int bnx2x_init_bp(struct bnx2x *bp)

	bp->current_interval = CHIP_REV_IS_SLOW(bp) ? 5*HZ : HZ;

	init_timer(&bp->timer);
	setup_timer(&bp->timer, bnx2x_timer, (unsigned long)bp);
	bp->timer.expires = jiffies + bp->current_interval;
	bp->timer.data = (unsigned long) bp;
	bp->timer.function = bnx2x_timer;

	if (SHMEM2_HAS(bp, dcbx_lldp_params_offset) &&
	    SHMEM2_HAS(bp, dcbx_lldp_dcbx_stat_offset) &&