[PATCH] i2c: rcar_iic: Do not use unitialised variable
Marek Vasut
marek.vasut at mailbox.org
Wed Aug 6 16:35:48 CEST 2025
On 7/28/25 5:04 PM, Andrew Goodbody wrote:
> In rcar_iic_xfer if nmsgs == 0 the ret will not be assigned to. As ret
> will always be 0 if the for loop is entered, may as well just return 0.
>
> This issue was found by Smatch.
>
> Signed-off-by: Andrew Goodbody <andrew.goodbody at linaro.org>
Reviewed-by: Marek Vasut <marek.vasut+renesas at mailbox.org>
Thanks !
More information about the U-Boot
mailing list