From: Viresh Kumar Date: Mon, 31 Aug 2015 11:51:12 +0000 (+0530) Subject: greybus: connection: Propagate error properly X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4c583f42c3cc0b6ebb678f5e7ecd5374479bfc22;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.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; } }