summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/cs35l41-i2c.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2021-10-20 15:24:16 +0200
committerMark Brown <broonie@kernel.org>2021-10-25 13:36:19 +0200
commitca7270a7b60dfb25b7fd180d93ea18eebd5edee7 (patch)
treece659c4f81ef6a2252913f364d5a975bac6e805d /sound/soc/codecs/cs35l41-i2c.c
parentASoc: wm8900: Drop empty spi_driver remove callback (diff)
downloadlinux-ca7270a7b60dfb25b7fd180d93ea18eebd5edee7.tar.xz
linux-ca7270a7b60dfb25b7fd180d93ea18eebd5edee7.zip
ASoC: cs35l41: Make cs35l41_remove() return void
Up to now cs35l41_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, platform 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/20211020132416.30288-1-u.kleine-koenig@pengutronix.de Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/cs35l41-i2c.c')
-rw-r--r--sound/soc/codecs/cs35l41-i2c.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/soc/codecs/cs35l41-i2c.c b/sound/soc/codecs/cs35l41-i2c.c
index 2f3d1bd8e046..d5fa8d2c4a70 100644
--- a/sound/soc/codecs/cs35l41-i2c.c
+++ b/sound/soc/codecs/cs35l41-i2c.c
@@ -75,7 +75,9 @@ static int cs35l41_i2c_remove(struct i2c_client *client)
{
struct cs35l41_private *cs35l41 = i2c_get_clientdata(client);
- return cs35l41_remove(cs35l41);
+ cs35l41_remove(cs35l41);
+
+ return 0;
}
#ifdef CONFIG_OF