diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2021-10-15 08:56:15 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-10-18 12:59:12 +0100 |
commit | d40dfa0cebd8197aaca2fcac4b9fa61da6e1c9fd (patch) | |
tree | 1ffa8f39f8d8f6786cc2be38ba529e88a4b6af4b /drivers/net/ethernet/wiznet/w5100.c | |
parent | 2841bfd10aa7bc07aecc452c10158a5df10ebd04 (diff) | |
download | linux-stable-d40dfa0cebd8197aaca2fcac4b9fa61da6e1c9fd.tar.gz linux-stable-d40dfa0cebd8197aaca2fcac4b9fa61da6e1c9fd.tar.bz2 linux-stable-d40dfa0cebd8197aaca2fcac4b9fa61da6e1c9fd.zip |
net: w5100: Make w5100_remove() return void
Up to now w5100_remove() returns zero unconditionally. Make it return
void instead which makes it easier to see in the callers that there is
no error to handle.
Also the return value of platform and spi remove callbacks is ignored
anyway.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/wiznet/w5100.c')
-rw-r--r-- | drivers/net/ethernet/wiznet/w5100.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/ethernet/wiznet/w5100.c b/drivers/net/ethernet/wiznet/w5100.c index 88fc65ed0017..ae24d6b86803 100644 --- a/drivers/net/ethernet/wiznet/w5100.c +++ b/drivers/net/ethernet/wiznet/w5100.c @@ -1064,7 +1064,9 @@ static int w5100_mmio_probe(struct platform_device *pdev) static int w5100_mmio_remove(struct platform_device *pdev) { - return w5100_remove(&pdev->dev); + w5100_remove(&pdev->dev); + + return 0; } void *w5100_ops_priv(const struct net_device *ndev) @@ -1210,7 +1212,7 @@ err_register: } EXPORT_SYMBOL_GPL(w5100_probe); -int w5100_remove(struct device *dev) +void w5100_remove(struct device *dev) { struct net_device *ndev = dev_get_drvdata(dev); struct w5100_priv *priv = netdev_priv(ndev); @@ -1226,7 +1228,6 @@ int w5100_remove(struct device *dev) unregister_netdev(ndev); free_netdev(ndev); - return 0; } EXPORT_SYMBOL_GPL(w5100_remove); |