[PATCH 1/2] power: axp: Remove redundant code

Quentin Schulz quentin.schulz at cherry.de
Mon Aug 11 17:10:08 CEST 2025


Hi Andrew,

On 8/7/25 4:28 PM, Andrew Goodbody wrote:
> In axp_init after checking the chip ID there is an else clause that
> returns ret. ret is guaranteed to be 0 at this point as the code would
> have returned above if not. The next statement is a return 0 so the
> return ret is redundant, remove it.
> 
> This issue was found by Smatch.
> 

Reviewed-by: Quentin Schulz <quentin.schulz at cherry.de>

Thanks!
Quentin


More information about the U-Boot mailing list