Commit 4c583f42 authored by Viresh Kumar's avatar Viresh Kumar Committed by Johan Hovold

greybus: connection: Propagate error properly

We just got an error, propagate the exact return value instead of 0.
Reviewed-by: default avatarBryan O'Donoghue <bryan.odonoghue@linaro.org>
Reviewed-by: default avatarJohan Hovold <johan@hovoldconsulting.com>
Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarJohan Hovold <johan@hovoldconsulting.com>
parent 58f469a7
...@@ -384,7 +384,7 @@ static int gb_connection_init(struct gb_connection *connection) ...@@ -384,7 +384,7 @@ static int gb_connection_init(struct gb_connection *connection)
dev_err(&connection->dev, dev_err(&connection->dev,
"Failed to connect CPort-%d (%d)\n", "Failed to connect CPort-%d (%d)\n",
cport_id, ret); cport_id, ret);
return 0; return ret;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment