diff options
author | Allen Pais <allen.lkml@gmail.com> | 2017-09-21 22:34:47 +0530 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-09-21 11:44:41 -0700 |
commit | f7c11175bdece128c0b4c4a43e6781b9216db4d9 (patch) | |
tree | aa11504379668779c6658820ee39f8964441a1b5 /drivers/net/xen-netback | |
parent | c41326fbb3a7d64c329267d20c58dd9cc8f22a47 (diff) | |
download | linux-f7c11175bdece128c0b4c4a43e6781b9216db4d9.tar.gz linux-f7c11175bdece128c0b4c4a43e6781b9216db4d9.tar.bz2 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; |