i3c: master: svc: Fix error code in svc_i3c_master_do_daa_locked()
Subsystems (3)
PATCH 1/1 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 <[email protected]>
--- drivers/i3c/master/svc-i3c-master.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/i3c/master/svc-i3c-master.c +1 -1
@@ -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 ; }
Signature · 1 line
2.43.0
Quoted 5 lines · Dan Carpenter
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 <[email protected]>
Reviewed-by Frank Li <[email protected]>
Quoted 20 lines
--- drivers/i3c/master/svc-i3c-master.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/i3c/master/svc-i3c-master.c +1
-1@@ -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 ; }Signature · 1 line
2.43.0
Quoted 4 lines · Dan Carpenter
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,
Signature · 3 lines
Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com