[PATCH net-next 01/11] net: stmmac: Make stmmac_pltfr_remove() return void
Martin Blumenstingl
martin.blumenstingl at googlemail.com
Mon Apr 3 13:39:03 PDT 2023
On Sun, Apr 2, 2023 at 4:31 PM Uwe Kleine-König
<u.kleine-koenig at pengutronix.de> wrote:
>
> The function returns zero unconditionally. Change it to return void instead
> which simplifies some callers as error handing becomes unnecessary.
>
> The function is also used for some drivers as remove callback. Switch these
> to the .remove_new() callback. For some others no error can happen in the
> remove callback now, convert them to .remove_new(), too.
>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig at pengutronix.de>
> ---
> drivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c | 2 +-
> drivers/net/ethernet/stmicro/stmmac/dwmac-generic.c | 2 +-
> drivers/net/ethernet/stmicro/stmmac/dwmac-imx.c | 2 +-
> drivers/net/ethernet/stmicro/stmmac/dwmac-ingenic.c | 2 +-
> drivers/net/ethernet/stmicro/stmmac/dwmac-intel-plat.c | 9 +++------
> drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c | 2 +-
> drivers/net/ethernet/stmicro/stmmac/dwmac-lpc18xx.c | 2 +-
> drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c | 9 +++------
> drivers/net/ethernet/stmicro/stmmac/dwmac-meson.c | 2 +-
> drivers/net/ethernet/stmicro/stmmac/dwmac-meson8b.c | 2 +-
for dwmac-meson and dwmac-meson8b:
Acked-by: Martin Blumenstingl <martin.blumenstingl at googlemail.com>
More information about the Linux-mediatek
mailing list