net: mediatek: Use correct variable for return
authorAndrew Goodbody <andrew.goodbody@linaro.org>
Tue, 5 Aug 2025 11:04:00 +0000 (12:04 +0100)
committerJerome Forissier <jerome.forissier@linaro.org>
Mon, 18 Aug 2025 13:47:57 +0000 (15:47 +0200)
commitff36afe346777f60c461964de1ab00aa6b2edb95
treebe02a679d3377b3caa31f5878a0e869e9ff2b7dd
parented3b08874f4c47e287a1f0eb36fc61ff7d778cc9
net: mediatek: Use correct variable for return

In mtk_eth_of_to_plat, the last error check has the value in
'priv->phy_addr' but returns ret. Correct to return 'priv->phy_addr'
instead.

This issue was found by Smatch.

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
drivers/net/mtk_eth/mtk_eth.c