[PATCH] adc: meson-saradc: uint cannot be less than zero
Neil Armstrong
neil.armstrong at linaro.org
Thu Sep 4 11:57:33 CEST 2025
Hi,
On Tue, 22 Jul 2025 15:06:14 +0100, Andrew Goodbody wrote:
> timeout is declared as a uint but then tested for being less than zero
> which must always fail. Change the while loop for a pre-decrement on
> timeout and test timeout for being zero.
>
> This issue was found by Smatch.
>
>
> [...]
Thanks, Applied to https://source.denx.de/u-boot/custodians/u-boot-amlogic (u-boot-amlogic-next)
[1/1] adc: meson-saradc: uint cannot be less than zero
https://source.denx.de/u-boot/custodians/u-boot-amlogic/-/commit/9504c710153f3b15812460b6a48e166e112f66eb
--
Neil
More information about the U-Boot
mailing list