diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2015-08-31 17:21:12 +0530 |
---|---|---|
committer | Johan Hovold <johan@hovoldconsulting.com> | 2015-09-03 14:45:09 +0200 |
commit | 4c583f42c3cc0b6ebb678f5e7ecd5374479bfc22 (patch) | |
tree | c269e6e45501cd43d71b9960143dd1a8babb1956 /drivers/staging/greybus/connection.c | |
parent | 58f469a7da3c0b2e126851f850780de20182708b (diff) | |
download | linux-stable-4c583f42c3cc0b6ebb678f5e7ecd5374479bfc22.tar.gz linux-stable-4c583f42c3cc0b6ebb678f5e7ecd5374479bfc22.tar.bz2 linux-stable-4c583f42c3cc0b6ebb678f5e7ecd5374479bfc22.zip |
greybus: connection: Propagate error properly
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>
Diffstat (limited to 'drivers/staging/greybus/connection.c')
-rw-r--r-- | drivers/staging/greybus/connection.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/greybus/connection.c b/drivers/staging/greybus/connection.c index 557fe6d6b7af..8fe056d57493 100644 --- 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; } } |