Re: [PATCH] adc: meson-saradc: uint cannot be less than zero
Neil Armstrong <[email protected]> Thu, 04 Sep 2025 11:57:33 +0200
| Newsgroups | io.groups.u-boot-amlogic,org.u-boot-project.lists.u-boot |
|---|---|
| Message-ID | <[email protected]> |
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