diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2016-02-05 20:57:19 (GMT) |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2016-02-05 22:28:03 (GMT) |
commit | 41ccebaecef50e56f822791a52b7bd9e9608e5e6 (patch) | |
tree | bfab3c754454654b0b88b5c2edcf49f2a1652af6 /net/batman-adv/hard-interface.c | |
parent | 4e48fe4148698ffd3935800f4967362e80a7ae92 (diff) | |
download | linux-41ccebaecef50e56f822791a52b7bd9e9608e5e6.tar.xz |
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
Diffstat (limited to 'net/batman-adv/hard-interface.c')
0 files changed, 0 insertions, 0 deletions