[PATCH] i2c: rcar_iic: Do not use unitialised variable
Heiko Schocher
hs at denx.de
Wed Aug 6 07:47:44 CEST 2025
Hello Andrew,
On 28.07.25 17:04, 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>
> ---
> drivers/i2c/rcar_iic.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by: Heiko Schocher <hs at denx.de>
bye,
Heiko
--
DENX Software Engineering GmbH, Managing Director: Johanna Denk, Tabea Lutz
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-52 Fax: +49-8142-66989-80 Email: hs at denx.de
More information about the U-Boot
mailing list