Commit f0db7892 authored by Alan Brady's avatar Alan Brady Committed by 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: default avatarAlan Brady <alan.brady@intel.com>
Tested-by: default avatarAndrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent fbb113f7
...@@ -1879,7 +1879,7 @@ static void i40evf_reset_task(struct work_struct *work) ...@@ -1879,7 +1879,7 @@ static void i40evf_reset_task(struct work_struct *work)
} }
continue_reset: continue_reset:
if (netif_running(adapter->netdev)) { if (netif_running(netdev)) {
netif_carrier_off(netdev); netif_carrier_off(netdev);
netif_tx_stop_all_queues(netdev); netif_tx_stop_all_queues(netdev);
adapter->link_up = false; adapter->link_up = false;
...@@ -1947,7 +1947,7 @@ static void i40evf_reset_task(struct work_struct *work) ...@@ -1947,7 +1947,7 @@ static void i40evf_reset_task(struct work_struct *work)
return; return;
reset_err: reset_err:
dev_err(&adapter->pdev->dev, "failed to allocate resources during reinit\n"); dev_err(&adapter->pdev->dev, "failed to allocate resources during reinit\n");
i40evf_close(adapter->netdev); i40evf_close(netdev);
} }
/** /**
......
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