mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
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 <[email protected]> Signed-off-by: John W. Linville <[email protected]>
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);
|
||||
if (err) {
|
||||
bcma_err(bus, "Failed to scan: %d\n", err);
|
||||
return -1;
|
||||
return err;
|
||||
}
|
||||
|
||||
/* Early init CC core */
|
||||
|
|
|
|||
Loading…
Reference in a new issue