power: axp: Remove redundant code
authorAndrew Goodbody <andrew.goodbody@linaro.org>
Thu, 7 Aug 2025 14:28:57 +0000 (15:28 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 29 Aug 2025 22:44:46 +0000 (16:44 -0600)
commit446b7b8f2d9b5b9bcd473c91f1e45cbb77be6c5f
treef3d2d8b57e49a4927e2f65852b7776243a100264
parent3526f990b77fca1c933f1d8b24eb9385010a05bf
power: axp: Remove redundant code

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.

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de>
drivers/power/axp818.c