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>
This commit is contained in:
parent
58f469a7da
commit
4c583f42c3
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user