mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 16:16:15 -04:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue