[PATCH 1/6] power: regulator: lp873x: Cannot test unsigned for being negative

Frieder Schrempf frieder.schrempf at kontron.de
Wed Aug 27 09:42:05 CEST 2025


Am 07.08.25 um 18:35 schrieb Andrew Goodbody:
> In lp873x_buck_val and lp873x_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