]> git.ipfire.org Git - thirdparty/u-boot.git/commit
imx93: adc: local variable ret should not be unsigned
authorAndrew Goodbody <andrew.goodbody@linaro.org>
Tue, 22 Jul 2025 13:40:24 +0000 (14:40 +0100)
committerFabio Estevam <festevam@gmail.com>
Thu, 24 Jul 2025 11:00:08 +0000 (08:00 -0300)
commit110a23e479d6a885ec9be322e8e63e102b194439
tree831565b3e610e4726d1d8acad0cd9655ec9a158c
parente6e8c601ed78470a3fd0e04058fd53b8a17c3107
imx93: adc: local variable ret should not be unsigned

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@linaro.org>
drivers/adc/imx93-adc.c