summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/wiznet/w5100-spi.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2021-10-15 08:56:15 +0200
committerDavid S. Miller <davem@davemloft.net>2021-10-18 12:59:12 +0100
commitd40dfa0cebd8197aaca2fcac4b9fa61da6e1c9fd (patch)
tree1ffa8f39f8d8f6786cc2be38ba529e88a4b6af4b /drivers/net/ethernet/wiznet/w5100-spi.c
parent2841bfd10aa7bc07aecc452c10158a5df10ebd04 (diff)
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-spi.c')
-rw-r--r--drivers/net/ethernet/wiznet/w5100-spi.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/ethernet/wiznet/w5100-spi.c b/drivers/net/ethernet/wiznet/w5100-spi.c
index 2b84848dc26a..7779a36da3c8 100644
--- a/drivers/net/ethernet/wiznet/w5100-spi.c
+++ b/drivers/net/ethernet/wiznet/w5100-spi.c
@@ -463,7 +463,9 @@ static int w5100_spi_probe(struct spi_device *spi)
static int w5100_spi_remove(struct spi_device *spi)
{
- return w5100_remove(&spi->dev);
+ w5100_remove(&spi->dev);
+
+ return 0;
}
static const struct spi_device_id w5100_spi_ids[] = {