[PATCH] imx93: adc: local variable ret should not be unsigned
Fabio Estevam
festevam at gmail.com
Thu Jul 24 23:17:21 CEST 2025
On Tue, Jul 22, 2025 at 10:50 AM Andrew Goodbody
<andrew.goodbody at linaro.org> wrote:
>
> Local variable ret is declared as unsigned but is used to receive the
> return value of functions that return int. ret is then tested for being
> negative which must always fail. Change ret to be an int.
>
> This issue was found by Smatch.
>
> Signed-off-by: Andrew Goodbody <andrew.goodbody at linaro.org>
Applied, thanks.
More information about the U-Boot
mailing list