phy: ti: j721e-wiz: Set error code before goto
authorAndrew Goodbody <andrew.goodbody@linaro.org>
Wed, 6 Aug 2025 17:03:26 +0000 (18:03 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 15 Aug 2025 20:17:30 +0000 (14:17 -0600)
commitfc96c1de5b719561db15259009a9ef22e671ee3d
treeef6198dd72dba131051aecb42515028b738d2a93
parent26d9bd1ccd6b344d1cc9ddb3d50981b106fed3b8
phy: ti: j721e-wiz: Set error code before goto

In j721e_wiz_probe the test for too many lanes jumps to the error exit
path without assigning an error code which could lead to calling code
silently ignoring the failure. Set the error code.

This issue was found by Smatch.

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
drivers/phy/ti/phy-j721e-wiz.c