From: Viresh Kumar Date: Mon, 31 Aug 2015 11:51:12 +0000 (+0530) Subject: greybus: connection: Propagate error properly X-Git-Tag: v4.9-rc1~119^2~378^2~21^2~1224 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=4c583f42c3cc0b6ebb678f5e7ecd5374479bfc22;p=karo-tx-linux.git greybus: connection: Propagate error properly We just got an error, propagate the exact return value instead of 0. Reviewed-by: Bryan O'Donoghue Reviewed-by: Johan Hovold Signed-off-by: Viresh Kumar Signed-off-by: Johan Hovold --- 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; } }