summaryrefslogtreecommitdiffstats
path: root/drivers/net/xen-netback
diff options
context:
space:
mode:
authorAllen Pais <allen.lkml@gmail.com>2017-09-21 22:34:47 +0530
committerDavid S. Miller <davem@davemloft.net>2017-09-21 11:44:41 -0700
commitf7c11175bdece128c0b4c4a43e6781b9216db4d9 (patch)
treeaa11504379668779c6658820ee39f8964441a1b5 /drivers/net/xen-netback
parentc41326fbb3a7d64c329267d20c58dd9cc8f22a47 (diff)
downloadlinux-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.c3
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;