ixgbevf: delete unneeded call to pci_set_power_state
authorJulia Lawall <Julia.Lawall@lip6.fr>
Wed, 8 Jan 2014 08:04:32 +0000 (08:04 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 13 Mar 2014 02:05:48 +0000 (19:05 -0700)
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>
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c

index 6ac5da2..475341d 100644 (file)
@@ -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