net: dwc_eth_xgmac: Use unwind goto on error
authorAndrew Goodbody <andrew.goodbody@linaro.org>
Mon, 4 Aug 2025 15:11:37 +0000 (16:11 +0100)
committerTien Fong Chee <tien.fong.chee@intel.com>
Fri, 8 Aug 2025 07:58:10 +0000 (15:58 +0800)
commit7701cc3415db98d0b2cc56ef8601939615254a2b
treec48a485c4d02b72c4a130801f0b2de9e64157f31
parent3526f990b77fca1c933f1d8b24eb9385010a05bf
net: dwc_eth_xgmac: Use unwind goto on error

In xgmac_probe there is a direct return after the point where unwind
gotos start to be used to undo actions performed by earlier code. Use
the appropriate unwind goto instead.

This issue was found by Smatch.

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
Reviewed-by: Tien Fong Chee <tien.fong.chee@altera.com>
drivers/net/dwc_eth_xgmac.c