From: Julia Lawall Date: Wed, 8 Jan 2014 08:04:32 +0000 (+0000) Subject: ixgbevf: delete unneeded call to pci_set_power_state X-Git-Tag: firefly_0821_release~176^2~4167^2~158^2 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=2f586f6bcd5367fbbd1d3352d524a3ef3183eeb2;p=firefly-linux-kernel-4.4.55.git 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 Tested-by: Phil Schmitt Signed-off-by: Jeff Kirsher --- diff --git a/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c b/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c index 6ac5da219150..475341d0ce7e 100644 --- a/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c +++ b/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c @@ -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