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

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

drivers: net: cxgb: 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 570ba3e8
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -2075,9 +2075,8 @@ struct sge *t1_sge_create(struct adapter *adapter, struct sge_params *p)
			goto nomem_port;
	}

	init_timer(&sge->tx_reclaim_timer);
	sge->tx_reclaim_timer.data = (unsigned long)sge;
	sge->tx_reclaim_timer.function = sge_tx_reclaim_cb;
	setup_timer(&sge->tx_reclaim_timer, sge_tx_reclaim_cb,
		    (unsigned long)sge);

	if (is_T2(sge->adapter)) {
		init_timer(&sge->espibug_timer);