[PATCH 2/6] power: regulator: lp87565: Cannot test unsigned for being negative

Frieder Schrempf frieder.schrempf at kontron.de
Wed Aug 27 09:43:41 CEST 2025


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