summaryrefslogtreecommitdiffstats
path: root/sound/soc
diff options
context:
space:
mode:
authorHimanshu Bhavani <himanshu.bhavani@siliconsignals.io>2023-12-18 20:02:08 +0530
committerMark Brown <broonie@kernel.org>2023-12-18 17:24:14 +0000
commit8b69dba103650b8247a336945c5fedc64ab5ddea (patch)
tree480fe98ce8fc712ba8396c11394bbc92be6f541a /sound/soc
parentee00330a5b78e2acf4b3aac32913da43e2c12a26 (diff)
downloadlinux-8b69dba103650b8247a336945c5fedc64ab5ddea.tar.gz
linux-8b69dba103650b8247a336945c5fedc64ab5ddea.tar.bz2
linux-8b69dba103650b8247a336945c5fedc64ab5ddea.zip
ASoC: amd: acp: Remove redundant ret variable
Removed Unneeded variable: "ret" Signed-off-by: Himanshu Bhavani <himanshu.bhavani@siliconsignals.io> Link: https://msgid.link/r/20231218143214.939885-1-himanshu.bhavani@siliconsignals.io Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc')
-rw-r--r--sound/soc/amd/acp/acp3x-es83xx/acp3x-es83xx.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/soc/amd/acp/acp3x-es83xx/acp3x-es83xx.c b/sound/soc/amd/acp/acp3x-es83xx/acp3x-es83xx.c
index 6cd3352dc38d..f85b85ea4be9 100644
--- a/sound/soc/amd/acp/acp3x-es83xx/acp3x-es83xx.c
+++ b/sound/soc/amd/acp/acp3x-es83xx/acp3x-es83xx.c
@@ -222,7 +222,6 @@ static int acp3x_es83xx_resume_post(struct snd_soc_card *card)
static int acp3x_es83xx_configure_gpios(struct acp3x_es83xx_private *priv)
{
- int ret = 0;
priv->enable_spk_gpio.crs_entry_index = 0;
priv->enable_hp_gpio.crs_entry_index = 1;
@@ -245,7 +244,7 @@ static int acp3x_es83xx_configure_gpios(struct acp3x_es83xx_private *priv)
priv->enable_spk_gpio.active_low ? "low" : "high",
priv->enable_hp_gpio.crs_entry_index,
priv->enable_hp_gpio.active_low ? "low" : "high");
- return ret;
+ return 0;
}
static int acp3x_es83xx_configure_mics(struct acp3x_es83xx_private *priv)