Commit b80155fe authored by Srinivas Kandagatla's avatar Srinivas Kandagatla Committed by Mark Brown

ASoC: codecs: wcd934x: remove redundant ret variable

return value form snd_soc_dapm_put_enum_double() directly instead
of taking this in another redundant variable.
Signed-off-by: default avatarSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20211130160507.22180-3-srinivas.kandagatla@linaro.orgSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 0d242698
...@@ -3379,7 +3379,7 @@ static int wcd934x_int_dem_inp_mux_put(struct snd_kcontrol *kc, ...@@ -3379,7 +3379,7 @@ static int wcd934x_int_dem_inp_mux_put(struct snd_kcontrol *kc,
{ {
struct soc_enum *e = (struct soc_enum *)kc->private_value; struct soc_enum *e = (struct soc_enum *)kc->private_value;
struct snd_soc_component *component; struct snd_soc_component *component;
int reg, val, ret; int reg, val;
component = snd_soc_dapm_kcontrol_component(kc); component = snd_soc_dapm_kcontrol_component(kc);
val = ucontrol->value.enumerated.item[0]; val = ucontrol->value.enumerated.item[0];
...@@ -3402,9 +3402,7 @@ static int wcd934x_int_dem_inp_mux_put(struct snd_kcontrol *kc, ...@@ -3402,9 +3402,7 @@ static int wcd934x_int_dem_inp_mux_put(struct snd_kcontrol *kc,
WCD934X_RX_DLY_ZN_EN_MASK, WCD934X_RX_DLY_ZN_EN_MASK,
WCD934X_RX_DLY_ZN_DISABLE); WCD934X_RX_DLY_ZN_DISABLE);
ret = snd_soc_dapm_put_enum_double(kc, ucontrol); return snd_soc_dapm_put_enum_double(kc, ucontrol);
return ret;
} }
static int wcd934x_dec_enum_put(struct snd_kcontrol *kcontrol, static int wcd934x_dec_enum_put(struct snd_kcontrol *kcontrol,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment