aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/setup-bus.c
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2013-04-12 13:35:40 -0400
committerBjorn Helgaas <bhelgaas@google.com>2013-04-17 12:21:12 -0400
commit9fc9eea09f518b9bbdc0a14ef668698c913ba614 (patch)
tree3e1b6cb29f75de5b9a0aa1db371a6fc3332d2d07 /drivers/pci/setup-bus.c
parentd67aed63b8bfa4a06575ed578328b02f909699ee (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/setup-bus.c')
-rw-r--r--drivers/pci/setup-bus.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/pci/setup-bus.c b/drivers/pci/setup-bus.c
index 502a75ea12fb..16abaaa1f83c 100644
--- a/drivers/pci/setup-bus.c
+++ b/drivers/pci/setup-bus.c
@@ -1545,6 +1545,8 @@ again:
1545 1545
1546enable_all: 1546enable_all:
1547 retval = pci_reenable_device(bridge); 1547 retval = pci_reenable_device(bridge);
1548 if (retval)
1549 dev_err(&bridge->dev, "Error reenabling bridge (%d)\n", retval);
1548 pci_set_master(bridge); 1550 pci_set_master(bridge);
1549 pci_enable_bridges(parent); 1551 pci_enable_bridges(parent);
1550} 1552}