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
This commit is contained in:
Bjorn Helgaas 2016-02-05 14:57:12 -06:00
parent ab1a187bba
commit 4e48fe4148

View File

@ -412,8 +412,6 @@ static int pcie_pme_suspend(struct pcie_device *srv)
data->suspend_level = PME_SUSPEND_WAKEUP; data->suspend_level = PME_SUSPEND_WAKEUP;
} }
if (!wakeup || ret) { if (!wakeup || ret) {
struct pci_dev *port = srv->port;
pcie_pme_interrupt_enable(port, false); pcie_pme_interrupt_enable(port, false);
pcie_clear_root_pme_status(port); pcie_clear_root_pme_status(port);
data->suspend_level = PME_SUSPEND_NOIRQ; data->suspend_level = PME_SUSPEND_NOIRQ;