diff mbox series

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

Message ID e017edfc-da64-496b-8516-958bec27cd9a@stanley.mountain (mailing list archive)
State Accepted
Headers show
Series i3c: master: svc: Fix error code in svc_i3c_master_do_daa_locked() | expand

Commit Message

Dan Carpenter July 18, 2024, 6:30 p.m. UTC
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>
---
 drivers/i3c/master/svc-i3c-master.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Alexandre Belloni July 23, 2024, 11:51 p.m. UTC | #1
On Thu, 18 Jul 2024 13:30:22 -0500, Dan Carpenter wrote:
> This code has a typo so it returns positive EIO instead of negative -EIO.  Fix
> it!
> 
> 

Applied, thanks!

[1/1] i3c: master: svc: Fix error code in svc_i3c_master_do_daa_locked()
      https://git.kernel.org/abelloni/c/82a8702d94fd

Best regards,
diff mbox series

Patch

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;
 				}