PCI/PME: Remove redundant port lookup
authorBjorn Helgaas <bhelgaas@google.com>
Fri, 5 Feb 2016 20:57:12 +0000 (14:57 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 5 Feb 2016 22:27:56 +0000 (16:27 -0600)
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
drivers/pci/pcie/pme.c

index 63fc63911295e7c0be875b39436c889c6850234e..56958618ec26d1e59fa5cc8787b6806074cac2e6 100644 (file)
@@ -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;