OSDN Git Service
(root)
/
android-x86
/
kernel.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
|
history
diff --git
a/drivers/bcma/main.c
b/drivers/bcma/main.c
index
0067422
..
90ee350
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 */