mirror of https://gitee.com/openkylin/linux.git
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: Alan Brady <alan.brady@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
parent
fbb113f773
commit
f0db789287
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue