Commit b73c9834 authored by Dan Carpenter's avatar Dan Carpenter Committed by Alexandre Belloni

i3c: master: svc: Fix error code in svc_i3c_master_do_daa_locked()

This code has a typo so it returns positive EIO instead of negative -EIO.  Fix
it!

Fixes: a7809cb368b9 ("i3c: master: svc: Improve DAA STOP handle code logic")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: default avatarFrank Li <Frank.Li@nxp.com>
Link: https://lore.kernel.org/r/e017edfc-da64-496b-8516-958bec27cd9a@stanley.mountainSigned-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
parent 63c33ca0
......@@ -874,7 +874,7 @@ static int svc_i3c_master_do_daa_locked(struct svc_i3c_master *master,
* address this time.
*/
if (prov_id[dev_nb] == nacking_prov_id) {
ret = EIO;
ret = -EIO;
break;
}
......
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