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: accepted/tizen/common/20141203.182822~1141^2~225^2~25^2~158 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1cabf7dba57011339d7e5a44b2c9829305936372;p=platform%2Fkernel%2Flinux-arm64.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 0067422..90ee350 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 */