Skip to content

Commit

Permalink
ASoC: amd: acp: Remove redundant ret variable
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Himanshu Bhavani authored and broonie committed Dec 18, 2023
1 parent ee00330 commit 8b69dba
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sound/soc/amd/acp/acp3x-es83xx/acp3x-es83xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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)
Expand Down

0 comments on commit 8b69dba

Please sign in to comment.