Commit 1cabf7db authored by Hauke Mehrtens's avatar Hauke Mehrtens Committed by John W. Linville

bcma: return correct error code when bus scan failed

It is better to return the actual error code than just -1.
Signed-off-by: default avatarHauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 16041990
...@@ -237,7 +237,7 @@ int bcma_bus_register(struct bcma_bus *bus) ...@@ -237,7 +237,7 @@ int bcma_bus_register(struct bcma_bus *bus)
err = bcma_bus_scan(bus); err = bcma_bus_scan(bus);
if (err) { if (err) {
bcma_err(bus, "Failed to scan: %d\n", err); bcma_err(bus, "Failed to scan: %d\n", err);
return -1; return err;
} }
/* Early init CC core */ /* Early init CC core */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment