Skip to content
Snippets Groups Projects
Commit 2f586f6b authored by Julia Lawall's avatar Julia Lawall Committed by Jeff Kirsher
Browse files

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: default avatarJulia Lawall <Julia.Lawall@lip6.fr>
Tested-by: default avatarPhil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent 305f8cec
No related branches found
No related tags found
No related merge requests found
......@@ -3280,7 +3280,6 @@ static int ixgbevf_resume(struct pci_dev *pdev)
struct ixgbevf_adapter *adapter = netdev_priv(netdev);
u32 err;
pci_set_power_state(pdev, PCI_D0);
pci_restore_state(pdev);
/*
* pci_restore_state clears dev->state_saved so call
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment