Skip to content

Commit 8b69dba

Browse files
Himanshu Bhavanibroonie
Himanshu Bhavani
authored andcommitted
ASoC: amd: acp: Remove redundant ret variable
Removed Unneeded variable: "ret" Signed-off-by: Himanshu Bhavani <[email protected]> Link: https://msgid.link/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent ee00330 commit 8b69dba

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sound/soc/amd/acp/acp3x-es83xx/acp3x-es83xx.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,6 @@ static int acp3x_es83xx_resume_post(struct snd_soc_card *card)
222222

223223
static int acp3x_es83xx_configure_gpios(struct acp3x_es83xx_private *priv)
224224
{
225-
int ret = 0;
226225

227226
priv->enable_spk_gpio.crs_entry_index = 0;
228227
priv->enable_hp_gpio.crs_entry_index = 1;
@@ -245,7 +244,7 @@ static int acp3x_es83xx_configure_gpios(struct acp3x_es83xx_private *priv)
245244
priv->enable_spk_gpio.active_low ? "low" : "high",
246245
priv->enable_hp_gpio.crs_entry_index,
247246
priv->enable_hp_gpio.active_low ? "low" : "high");
248-
return ret;
247+
return 0;
249248
}
250249

251250
static int acp3x_es83xx_configure_mics(struct acp3x_es83xx_private *priv)

0 commit comments

Comments
 (0)