summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/arc/emac.h
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2023-05-18 22:30:49 +0200
committerDavid S. Miller <davem@davemloft.net>2023-05-19 14:33:28 +0200
commit20d5e0ef252a151ea6585cfccf32def81a624666 (patch)
tree4c80de1d724af79f6970741269bb2a2ff580599d /drivers/net/ethernet/arc/emac.h
parentMerge branch 'mptcp-refactor-inet_accept-and-mib-updates' (diff)
downloadlinux-20d5e0ef252a151ea6585cfccf32def81a624666.tar.xz
linux-20d5e0ef252a151ea6585cfccf32def81a624666.zip
net: arc: Make arc_emac_remove() return void
The function returns zero unconditionally. Change it to return void instead which simplifies its callers as error handing becomes unnecessary. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Reviewed-by: Simon Horman <simon.horman@corigine.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/arc/emac.h')
-rw-r--r--drivers/net/ethernet/arc/emac.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/arc/emac.h b/drivers/net/ethernet/arc/emac.h
index d820ae03a966..0e244f0e25fd 100644
--- a/drivers/net/ethernet/arc/emac.h
+++ b/drivers/net/ethernet/arc/emac.h
@@ -220,6 +220,6 @@ static inline void arc_reg_clr(struct arc_emac_priv *priv, int reg, int mask)
int arc_mdio_probe(struct arc_emac_priv *priv);
int arc_mdio_remove(struct arc_emac_priv *priv);
int arc_emac_probe(struct net_device *ndev, int interface);
-int arc_emac_remove(struct net_device *ndev);
+void arc_emac_remove(struct net_device *ndev);
#endif /* ARC_EMAC_H */