aboutsummaryrefslogtreecommitdiff
path: root/drivers/staging/greybus/connection.c
diff options
context:
space:
mode:
authorGravatar Viresh Kumar <viresh.kumar@linaro.org> 2015-08-31 17:21:12 +0530
committerGravatar Johan Hovold <johan@hovoldconsulting.com> 2015-09-03 14:45:09 +0200
commit4c583f42c3cc0b6ebb678f5e7ecd5374479bfc22 (patch)
treec269e6e45501cd43d71b9960143dd1a8babb1956 /drivers/staging/greybus/connection.c
parentgreybus: connection: no need to verify connection->protocol (diff)
downloadlinux-4c583f42c3cc0b6ebb678f5e7ecd5374479bfc22.tar.gz
linux-4c583f42c3cc0b6ebb678f5e7ecd5374479bfc22.tar.bz2
linux-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.c2
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;
}
}