linux/drivers/pci
Bjorn Helgaas 41ccebaece PCI/PME: Restructure pcie_pme_suspend() to prevent compiler warning
Previously we had this:

  if (wakeup)
    ret = enable_irq_wake(...);
  if (!wakeup || ret)
    ...

"ret" is only evaluated when "wakeup" is true, and it is always initialized
in that case, but gcc isn't smart enough to figure that out and warns:

  drivers/pci/pcie/pme.c:414:14: warning: 'ret' may be used uninitialized in this function [-Wmaybe-uninitialized]

Restructure the code slightly to make it easier for gcc (and maybe for
humans as well).

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com
2016-02-05 16:28:03 -06:00
..
host PCI changes for the v4.5 merge window: 2016-01-21 11:52:16 -08:00
hotplug Merge branch 'pci/trivial' into next 2016-01-20 11:48:25 -06:00
pcie PCI/PME: Restructure pcie_pme_suspend() to prevent compiler warning 2016-02-05 16:28:03 -06:00
access.c
ats.c
bus.c PCI: Check device_attach() return value always 2016-02-05 14:56:57 -06:00
host-bridge.c
hotplug-pci.c
htirq.c
iov.c
irq.c
Kconfig
Makefile
msi.c PCI changes for the v4.5 merge window: 2016-01-21 11:52:16 -08:00
of.c
pci-acpi.c Power management and ACPI updates for v4.5-rc1 2016-01-12 20:25:09 -08:00
pci-driver.c
pci-label.c
pci-stub.c
pci-sysfs.c PCI changes for the v4.5 merge window: 2016-01-21 11:52:16 -08:00
pci.c PCI changes for the v4.5 merge window: 2016-01-21 11:52:16 -08:00
pci.h PCI changes for the v4.5 merge window: 2016-01-21 11:52:16 -08:00
probe.c PCI changes for the v4.5 merge window: 2016-01-21 11:52:16 -08:00
proc.c
quirks.c PCI changes for the v4.5 merge window: 2016-01-21 11:52:16 -08:00
remove.c
rom.c Merge branches 'pci/hotplug' and 'pci/resource' into next 2016-01-15 12:33:29 -06:00
search.c
setup-bus.c
setup-irq.c
setup-res.c
slot.c
syscall.c
vc.c
vpd.c
xen-pcifront.c