diff options
| author | Andrew Goodbody <[email protected]> | 2025-07-22 15:06:14 +0100 |
|---|---|---|
| committer | Neil Armstrong <[email protected]> | 2025-09-30 20:32:15 +0200 |
| commit | b332723882f82f6feff027fb733c4b7e43bdef80 (patch) | |
| tree | f8df508fc8fabbf03ce06a056d88f2376361c187 /include/linux/zstd_errors.h | |
| parent | 033dbc7f9ec969168a2f48766cb16aa26fa381d8 (diff) | |
adc: meson-saradc: uint cannot be less than zero
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.
Signed-off-by: Andrew Goodbody <[email protected]>
Reviewed-by: Neil Armstrong <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Neil Armstrong <[email protected]>
Diffstat (limited to 'include/linux/zstd_errors.h')
0 files changed, 0 insertions, 0 deletions
