summaryrefslogtreecommitdiff
path: root/sound/pci/hda/cs35l41_hda_spi.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2022-01-18 01:00:55 +0300
committerTakashi Iwai <tiwai@suse.de>2022-01-18 16:08:05 +0300
commit85c25662d18903874fad585d17fc398a7ba37ab0 (patch)
treeffe563295705827f82c64dd7419795e56232aac3 /sound/pci/hda/cs35l41_hda_spi.c
parent8c286a0f973a81201a0cef72a7ca55eda29fc35c (diff)
downloadlinux-85c25662d18903874fad585d17fc398a7ba37ab0.tar.xz
ALSA: hda: cs35l41: Make cs35l41_hda_remove() return void
Up to now cs35l41_hda_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> Reviewed-by: Lucas Tanure <tanureal@opensource.cirrus.com> Link: https://lore.kernel.org/r/20220117220055.120955-1-u.kleine-koenig@pengutronix.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/cs35l41_hda_spi.c')
-rw-r--r--sound/pci/hda/cs35l41_hda_spi.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/pci/hda/cs35l41_hda_spi.c b/sound/pci/hda/cs35l41_hda_spi.c
index 36815ab4e461..9f8123893cc8 100644
--- a/sound/pci/hda/cs35l41_hda_spi.c
+++ b/sound/pci/hda/cs35l41_hda_spi.c
@@ -30,7 +30,9 @@ static int cs35l41_hda_spi_probe(struct spi_device *spi)
static int cs35l41_hda_spi_remove(struct spi_device *spi)
{
- return cs35l41_hda_remove(&spi->dev);
+ cs35l41_hda_remove(&spi->dev);
+
+ return 0;
}
static const struct spi_device_id cs35l41_hda_spi_id[] = {