OSDN Git Service

net: stmmac: dwc-qos: Make struct dwc_eth_dwmac_data::remove return void
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Sat, 11 Feb 2023 11:24:31 +0000 (12:24 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 14 Feb 2023 03:50:43 +0000 (19:50 -0800)
commit1a940b00013a468c0c9dd79dbb485c3ad273939e
treeb25858b3d88e00c6b3651f1270a54e25671c3d1d
parentff0011cf56014b4dfe88adc35e36a25df63d5005
net: stmmac: dwc-qos: Make struct dwc_eth_dwmac_data::remove return void

All implementations of the remove callback return 0 unconditionally. So
in dwc_eth_dwmac_remove() there is no error handling necessary. Simplify
accordingly.

This is a preparation for making struct platform_driver::remove return
void, too.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20230211112431.214252-2-u.kleine-koenig@pengutronix.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c