forked from luck/tmp_suning_uos_patched
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:
parent
ab1a187bba
commit
4e48fe4148
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user