Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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