[PATCH 2/3] PCI/PME: Remove redundant port lookup

From: Bjorn Helgaas
Date: Tue Feb 02 2016 - 14:20:53 EST


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@xxxxxxxxxx>
---
drivers/pci/pcie/pme.c | 2 --
1 file changed, 2 deletions(-)

diff --git a/drivers/pci/pcie/pme.c b/drivers/pci/pcie/pme.c
index 63fc639..5695861 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;