diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2021-10-19 09:41:25 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-10-29 18:55:24 +0100 |
commit | 2a7985136cac21c8e94e2f1977f052d415d282b0 (patch) | |
tree | a709ce906fa02d6addbbc2af2eef30fea633d402 /sound/soc/codecs/tlv320aic3x-spi.c | |
parent | 6c8552ebba7742e7128134859846e17edbfdf222 (diff) | |
download | lwn-2a7985136cac21c8e94e2f1977f052d415d282b0.tar.gz lwn-2a7985136cac21c8e94e2f1977f052d415d282b0.zip |
ASoC: tlv320aic3x: Make aic3x_remove() return void
Up to now aic3x_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 i2c and spi remove callbacks is ignored anyway.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20211019074125.3812513-1-u.kleine-koenig@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/tlv320aic3x-spi.c')
-rw-r--r-- | sound/soc/codecs/tlv320aic3x-spi.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/soc/codecs/tlv320aic3x-spi.c b/sound/soc/codecs/tlv320aic3x-spi.c index 8c7b6bb9223f..494e84402232 100644 --- a/sound/soc/codecs/tlv320aic3x-spi.c +++ b/sound/soc/codecs/tlv320aic3x-spi.c @@ -37,7 +37,9 @@ static int aic3x_spi_probe(struct spi_device *spi) static int aic3x_spi_remove(struct spi_device *spi) { - return aic3x_remove(&spi->dev); + aic3x_remove(&spi->dev); + + return 0; } static const struct spi_device_id aic3x_spi_id[] = { |