diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2016-01-27 13:35:07 (GMT) |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2016-02-05 20:56:57 (GMT) |
commit | ab1a187bba5c4e5ed8aa6e7bb7dcd7cd7e065aef (patch) | |
tree | e724eb5be84d0c98fcbccc0c78b475bd0174350a /drivers/pci/pcie | |
parent | 92e963f50fc74041b5e9e744c330dca48e04f08d (diff) | |
download | linux-ab1a187bba5c4e5ed8aa6e7bb7dcd7cd7e065aef.tar.xz |
PCI: Check device_attach() return value always
Previously we checked the device_attach() return value only when
CONFIG_BUG=y. That caused this warning in builds where CONFIG_BUG is not
set:
drivers/pci/bus.c:237:6: warning: variable 'retval' set but not used [-Wunused-but-set-variable]
Check the return value of device_attach() always and clean up after
failure.
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/pci/pcie')
0 files changed, 0 insertions, 0 deletions