diff options
author | Dan Carpenter <dan.carpenter@linaro.org> | 2024-07-18 13:30:22 -0500 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2024-07-26 14:21:30 +0200 |
commit | b73c983491e0a61331611d2dab1dfccd4464b060 (patch) | |
tree | f8bb16d154749d4daa989b004e21de79c0742a02 /drivers/i3c/master/svc-i3c-master.c | |
parent | 63c33ca0969cf4d4574103b69fb46f58a19a182b (diff) | |
download | lwn-b73c983491e0a61331611d2dab1dfccd4464b060.tar.gz lwn-b73c983491e0a61331611d2dab1dfccd4464b060.zip |
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: 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>
Diffstat (limited to 'drivers/i3c/master/svc-i3c-master.c')
-rw-r--r-- | drivers/i3c/master/svc-i3c-master.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i3c/master/svc-i3c-master.c b/drivers/i3c/master/svc-i3c-master.c index e80c002991f7..0a68fd1b81d4 100644 --- a/drivers/i3c/master/svc-i3c-master.c +++ b/drivers/i3c/master/svc-i3c-master.c @@ -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; } |