提交 f0db7892 编写于 作者: A Alan Brady 提交者: Jeff Kirsher

i40evf: use netdev variable in reset task

If we're going to bother initializing a variable to reference it we might
as well use it.
Signed-off-by: NAlan Brady <alan.brady@intel.com>
Tested-by: NAndrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: NJeff Kirsher <jeffrey.t.kirsher@intel.com>
上级 fbb113f7
......@@ -1879,7 +1879,7 @@ static void i40evf_reset_task(struct work_struct *work)
}
continue_reset:
if (netif_running(adapter->netdev)) {
if (netif_running(netdev)) {
netif_carrier_off(netdev);
netif_tx_stop_all_queues(netdev);
adapter->link_up = false;
......@@ -1947,7 +1947,7 @@ static void i40evf_reset_task(struct work_struct *work)
return;
reset_err:
dev_err(&adapter->pdev->dev, "failed to allocate resources during reinit\n");
i40evf_close(adapter->netdev);
i40evf_close(netdev);
}
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册