Skip to content

Commit

Permalink
be2net: remove redundant D0 power state set
Browse files Browse the repository at this point in the history
pci_enable_device() call sets device power state to D0; there is no need
doing it again.

Signed-off-by: Kalesh AP <kalesh.purayil@avagotech.com>
Signed-off-by: Sathya Perla <sathya.perla@avagotech.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Kalesh Purayil authored and David S. Miller committed Jul 11, 2015
1 parent ff9ed19 commit bc23d6b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/net/ethernet/emulex/benet/be_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -5807,7 +5807,6 @@ static int be_pci_resume(struct pci_dev *pdev)
if (status)
return status;

pci_set_power_state(pdev, PCI_D0);
pci_restore_state(pdev);

status = be_resume(adapter);
Expand Down Expand Up @@ -5887,7 +5886,6 @@ static pci_ers_result_t be_eeh_reset(struct pci_dev *pdev)
return PCI_ERS_RESULT_DISCONNECT;

pci_set_master(pdev);
pci_set_power_state(pdev, PCI_D0);
pci_restore_state(pdev);

/* Check if card is ok and fw is ready */
Expand Down

0 comments on commit bc23d6b

Please sign in to comment.