瀏覽代碼

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>
Julia Lawall 11 年之前
父節點
當前提交
2f586f6bcd
共有 1 個文件被更改,包括 0 次插入1 次删除
  1. 0 1
      drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c

+ 0 - 1
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);
 	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