diff options
author | Allen Pais <allen.lkml@gmail.com> | 2017-09-21 19:04:47 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-09-21 20:44:41 +0200 |
commit | f7c11175bdece128c0b4c4a43e6781b9216db4d9 (patch) | |
tree | aa11504379668779c6658820ee39f8964441a1b5 /drivers/net/xen-netback | |
parent | drivers: net: bnx2: use setup_timer() helper. (diff) | |
download | linux-f7c11175bdece128c0b4c4a43e6781b9216db4d9.tar.xz linux-f7c11175bdece128c0b4c4a43e6781b9216db4d9.zip |
drivers: net: xen-netback: use setup_timer() helper.
Use setup_timer function instead of initializing timer with the
function and data fields.
Signed-off-by: Allen Pais <allen.lkml@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/xen-netback')
-rw-r--r-- | drivers/net/xen-netback/interface.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/xen-netback/interface.c b/drivers/net/xen-netback/interface.c index ee8ed9da00ad..dcfcb153918c 100644 --- a/drivers/net/xen-netback/interface.c +++ b/drivers/net/xen-netback/interface.c @@ -520,8 +520,7 @@ int xenvif_init_queue(struct xenvif_queue *queue) queue->credit_bytes = queue->remaining_credit = ~0UL; queue->credit_usec = 0UL; - init_timer(&queue->credit_timeout); - queue->credit_timeout.function = xenvif_tx_credit_callback; + setup_timer(&queue->credit_timeout, xenvif_tx_credit_callback, 0UL); queue->credit_window_start = get_jiffies_64(); queue->rx_queue_max = XENVIF_RX_QUEUE_BYTES; |