summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/pcm1789-i2c.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2022-04-25 22:30:23 +0300
committerMark Brown <broonie@kernel.org>2022-04-26 17:13:43 +0300
commit6cefb6264277c073030a3b2d91ba6b28593b4c89 (patch)
treef9d73ff394a225a36afce628a61d3c517d472049 /sound/soc/codecs/pcm1789-i2c.c
parentc85f533d51ca42a461a61303322b0cf74fb75a6b (diff)
downloadlinux-6cefb6264277c073030a3b2d91ba6b28593b4c89.tar.xz
ASoC: pcm1789: Make pcm1789_common_exit() return void
This function returns zero unconditionally, so there isn't any benefit of returning a value. Make it return void to be able to see at a glance that the return value of pcm1789_i2c_remove() is always zero. This patch is a preparation for making i2c remove callbacks return void. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Link: https://lore.kernel.org/r/20220425193023.61046-1-u.kleine-koenig@pengutronix.de Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/pcm1789-i2c.c')
-rw-r--r--sound/soc/codecs/pcm1789-i2c.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/soc/codecs/pcm1789-i2c.c b/sound/soc/codecs/pcm1789-i2c.c
index 28e6ca2ad3a4..1d2f7480a6e4 100644
--- a/sound/soc/codecs/pcm1789-i2c.c
+++ b/sound/soc/codecs/pcm1789-i2c.c
@@ -29,7 +29,9 @@ static int pcm1789_i2c_probe(struct i2c_client *client)
static int pcm1789_i2c_remove(struct i2c_client *client)
{
- return pcm1789_common_exit(&client->dev);
+ pcm1789_common_exit(&client->dev);
+
+ return 0;
}
#ifdef CONFIG_OF