ixgbevf: delete unneeded call to pci_set_power_state
This driver does not need to adjust the power state on suspend, so the call to pci_set_power_state in the resume function is a no-op. Drop it, to make the code more understandable. Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
parent
305f8cec7b
commit
2f586f6bcd
@ -3280,7 +3280,6 @@ static int ixgbevf_resume(struct pci_dev *pdev)
|
|||||||
struct ixgbevf_adapter *adapter = netdev_priv(netdev);
|
struct ixgbevf_adapter *adapter = netdev_priv(netdev);
|
||||||
u32 err;
|
u32 err;
|
||||||
|
|
||||||
pci_set_power_state(pdev, PCI_D0);
|
|
||||||
pci_restore_state(pdev);
|
pci_restore_state(pdev);
|
||||||
/*
|
/*
|
||||||
* pci_restore_state clears dev->state_saved so call
|
* pci_restore_state clears dev->state_saved so call
|
||||||
|
Loading…
x
Reference in New Issue
Block a user