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

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
...@@ -2075,9 +2075,8 @@ struct sge *t1_sge_create(struct adapter *adapter, struct sge_params *p) ...@@ -2075,9 +2075,8 @@ struct sge *t1_sge_create(struct adapter *adapter, struct sge_params *p)
goto nomem_port; goto nomem_port;
} }
init_timer(&sge->tx_reclaim_timer); setup_timer(&sge->tx_reclaim_timer, sge_tx_reclaim_cb,
sge->tx_reclaim_timer.data = (unsigned long)sge; (unsigned long)sge);
sge->tx_reclaim_timer.function = sge_tx_reclaim_cb;
if (is_T2(sge->adapter)) { if (is_T2(sge->adapter)) {
init_timer(&sge->espibug_timer); init_timer(&sge->espibug_timer);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment