Skip to content

Commit b73c983

Browse files
Dan Carpenteralexandrebelloni
authored andcommitted
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: a7809cb ("i3c: master: svc: Improve DAA STOP handle code logic") Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org> Reviewed-by: Frank Li <Frank.Li@nxp.com> Link: https://lore.kernel.org/r/e017edfc-da64-496b-8516-958bec27cd9a@stanley.mountain Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
1 parent 63c33ca commit b73c983

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/i3c/master/svc-i3c-master.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -874,7 +874,7 @@ static int svc_i3c_master_do_daa_locked(struct svc_i3c_master *master,
874874
* address this time.
875875
*/
876876
if (prov_id[dev_nb] == nacking_prov_id) {
877-
ret = EIO;
877+
ret = -EIO;
878878
break;
879879
}
880880

0 commit comments

Comments
 (0)