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 <hauke@hauke-m.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
16041990d1
commit
1cabf7dba5
1 changed files with 1 additions and 1 deletions
|
@ -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 */
|
||||||
|
|
Loading…
Add table
Reference in a new issue