projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
58f469a
)
greybus: connection: Propagate error properly
author
Viresh Kumar
<viresh.kumar@linaro.org>
Mon, 31 Aug 2015 11:51:12 +0000
(17:21 +0530)
committer
Johan Hovold
<johan@hovoldconsulting.com>
Thu, 3 Sep 2015 12:45:09 +0000
(14:45 +0200)
We just got an error, propagate the exact return value instead of 0.
Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Reviewed-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
drivers/staging/greybus/connection.c
patch
|
blob
|
history
diff --git
a/drivers/staging/greybus/connection.c
b/drivers/staging/greybus/connection.c
index 557fe6d6b7afeb4afd9dc0de0b120b1ae4263930..8fe056d57493ec9e486cc27040bac6dc35bbe926 100644
(file)
--- a/
drivers/staging/greybus/connection.c
+++ b/
drivers/staging/greybus/connection.c
@@
-384,7
+384,7
@@
static int gb_connection_init(struct gb_connection *connection)
dev_err(&connection->dev,
"Failed to connect CPort-%d (%d)\n",
cport_id, ret);
- return
0
;
+ return
ret
;
}
}