]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: ftgmac100: Simplify error handling for ftgmac100_initial_mac
authorAndrew Lunn <andrew@lunn.ch>
Fri, 6 Feb 2026 03:17:47 +0000 (11:17 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 10 Feb 2026 12:40:50 +0000 (13:40 +0100)
commitd1d8392883bf2e7fdbd308cc1c986ad5072493e4
treeb7c78bce806f5961581a0784e7fb91c5ecbf1eb0
parent4659ccedf22b77f20d7e0cea68655b39675c434f
net: ftgmac100: Simplify error handling for ftgmac100_initial_mac

ftgmac100_initial_mac() does not allocate any resources. All resources
by the probe function up until this call point use devm_ methods. So
just return the error code rather than use a goto.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Jacky Chou <jacky_chou@aspeedtech.com>
Link: https://patch.msgid.link/20260206-ftgmac-cleanup-v5-7-ad28a9067ea7@aspeedtech.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/faraday/ftgmac100.c