From: Hauke Mehrtens Date: Mon, 15 Jul 2013 11:15:07 +0000 (+0200) Subject: bcma: return correct error code when bus scan failed X-Git-Tag: MMI-PSA29.97-13-9~13299^2~225^2~25^2~158 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1cabf7dba57011339d7e5a44b2c9829305936372;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git bcma: return correct error code when bus scan failed It is better to return the actual error code than just -1. Signed-off-by: Hauke Mehrtens Signed-off-by: John W. Linville --- diff --git a/drivers/bcma/main.c b/drivers/bcma/main.c index 0067422ec17d..90ee350442a9 100644 --- a/drivers/bcma/main.c +++ b/drivers/bcma/main.c @@ -237,7 +237,7 @@ int bcma_bus_register(struct bcma_bus *bus) err = bcma_bus_scan(bus); if (err) { bcma_err(bus, "Failed to scan: %d\n", err); - return -1; + return err; } /* Early init CC core */