[PATCH 6/6] power: regulator: tps65941: Cannot test unsigned for being negative
Frieder Schrempf
frieder.schrempf at kontron.de
Wed Aug 27 09:56:51 CEST 2025
Am 07.08.25 um 18:35 schrieb Andrew Goodbody:
> In tps65941_buck_val and tps65941_ldo_val hex is an unsigned variable
> being assigned the return value from a function that returns int. Change
> hex to be an int so that the following test for an error as a negative
> value will work as expected.
>
> This issue was found by Smatch.
>
> Signed-off-by: Andrew Goodbody <andrew.goodbody at linaro.org>
Reviewed-by: Frieder Schrempf <frieder.schrempf at kontron.de>
More information about the U-Boot
mailing list