mirror of
https://github.com/torvalds/linux.git
synced 2024-11-17 17:41:44 +00:00
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>
This commit is contained in:
parent
c41326fbb3
commit
f7c11175bd
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user