]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: stmmac: anarion: clean up anarion_config_dt() error handling
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Mon, 14 Apr 2025 09:06:00 +0000 (10:06 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 15 Apr 2025 15:36:01 +0000 (08:36 -0700)
commitc30a45a7e072cd1cb9887daba7446ae653b12801
tree40634d698b70c113d433cd7774aee674dbb36efc
parent2f8cc49d869cbfa6f72068774b3de420536c21ac
net: stmmac: anarion: clean up anarion_config_dt() error handling

When enabled, print a user friendly description of the error when
failing to ioremap() the control resource, and use ERR_CAST() when
propagating the error. This allows us to get rid of the "err" local
variable in anarion_config_dt().

Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Link: https://patch.msgid.link/E1u4FlQ-000XjA-2V@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c