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

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: default avatarAllen Pais <allen.lkml@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c41326fb
...@@ -520,8 +520,7 @@ int xenvif_init_queue(struct xenvif_queue *queue) ...@@ -520,8 +520,7 @@ int xenvif_init_queue(struct xenvif_queue *queue)
queue->credit_bytes = queue->remaining_credit = ~0UL; queue->credit_bytes = queue->remaining_credit = ~0UL;
queue->credit_usec = 0UL; queue->credit_usec = 0UL;
init_timer(&queue->credit_timeout); setup_timer(&queue->credit_timeout, xenvif_tx_credit_callback, 0UL);
queue->credit_timeout.function = xenvif_tx_credit_callback;
queue->credit_window_start = get_jiffies_64(); queue->credit_window_start = get_jiffies_64();
queue->rx_queue_max = XENVIF_RX_QUEUE_BYTES; queue->rx_queue_max = XENVIF_RX_QUEUE_BYTES;
......
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