projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab1a187
)
PCI/PME: Remove redundant port lookup
author
Bjorn Helgaas
<bhelgaas@google.com>
Fri, 5 Feb 2016 20:57:12 +0000
(14:57 -0600)
committer
Bjorn 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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/pci/pcie/pme.c
b/drivers/pci/pcie/pme.c
index 63fc63911295e7c0be875b39436c889c6850234e..56958618ec26d1e59fa5cc8787b6806074cac2e6 100644
(file)
--- 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;