i3c: master: svc: Fix error code in svc_i3c_master_do_daa_locked()
authorDan Carpenter <dan.carpenter@linaro.org>
Thu, 18 Jul 2024 18:30:22 +0000 (13:30 -0500)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Fri, 26 Jul 2024 12:21:30 +0000 (14:21 +0200)
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>
drivers/i3c/master/svc-i3c-master.c

index e80c002991f750896edec7b15a3cc48539d61ec6..0a68fd1b81d4e90c653ed6d0b1760de51c93aef9 100644 (file)
@@ -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;
                                }