diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2013-04-12 13:35:40 -0400 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2013-04-17 12:21:12 -0400 |
commit | 9fc9eea09f518b9bbdc0a14ef668698c913ba614 (patch) | |
tree | 3e1b6cb29f75de5b9a0aa1db371a6fc3332d2d07 /drivers/pci/bus.c | |
parent | d67aed63b8bfa4a06575ed578328b02f909699ee (diff) |
PCI: Warn about failures instead of "must_check" functions
These places capture return values to avoid "must_check" warnings,
but we didn't *do* anything with the return values, which causes
"set but not used" warnings. We might as well do something instead
of just trying to evade the "must_check" warnings.
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/bus.c')
-rw-r--r-- | drivers/pci/bus.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/pci/bus.c b/drivers/pci/bus.c index 8647dc6f52d0..ee4c4c4fde17 100644 --- a/drivers/pci/bus.c +++ b/drivers/pci/bus.c | |||
@@ -202,6 +202,9 @@ void pci_bus_add_devices(const struct pci_bus *bus) | |||
202 | if (dev->is_added) | 202 | if (dev->is_added) |
203 | continue; | 203 | continue; |
204 | retval = pci_bus_add_device(dev); | 204 | retval = pci_bus_add_device(dev); |
205 | if (retval) | ||
206 | dev_err(&dev->dev, "Error adding device (%d)\n", | ||
207 | retval); | ||
205 | } | 208 | } |
206 | 209 | ||
207 | list_for_each_entry(dev, &bus->devices, bus_list) { | 210 | list_for_each_entry(dev, &bus->devices, bus_list) { |