projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1604199
)
bcma: return correct error code when bus scan failed
author
Hauke Mehrtens
<hauke@hauke-m.de>
Mon, 15 Jul 2013 11:15:07 +0000
(13:15 +0200)
committer
John W. Linville
<linville@tuxdriver.com>
Mon, 22 Jul 2013 20:54:40 +0000
(16:54 -0400)
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>
drivers/bcma/main.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/bcma/main.c
b/drivers/bcma/main.c
index 0067422ec17dacb681fd3d6cd4afd0c64894ae1c..90ee350442a99d243606c97b716af75d909308c9 100644
(file)
--- 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 */