diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2016-02-05 14:57:12 -0600 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2016-02-05 16:27:56 -0600 |
commit | 4e48fe4148698ffd3935800f4967362e80a7ae92 (patch) | |
tree | 55ace066e805512bf2e7a03e09ef35d80a80da24 | |
parent | ab1a187bba5c4e5ed8aa6e7bb7dcd7cd7e065aef (diff) | |
download | linux-4e48fe4148698ffd3935800f4967362e80a7ae92.tar.bz2 |
PCI/PME: Remove redundant port lookup
We've already looked up srv->port a few lines earlier, and there's no need
to do it again. Remove the redundant lookup.
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com
-rw-r--r-- | drivers/pci/pcie/pme.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/pci/pcie/pme.c b/drivers/pci/pcie/pme.c index 63fc63911295..56958618ec26 100644 --- a/drivers/pci/pcie/pme.c +++ b/drivers/pci/pcie/pme.c @@ -412,8 +412,6 @@ static int pcie_pme_suspend(struct pcie_device *srv) data->suspend_level = PME_SUSPEND_WAKEUP; } if (!wakeup || ret) { - struct pci_dev *port = srv->port; - pcie_pme_interrupt_enable(port, false); pcie_clear_root_pme_status(port); data->suspend_level = PME_SUSPEND_NOIRQ; |