Skip to content

Commit b80155f

Browse files
Srinivas-Kandagatlabroonie
authored andcommitted
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: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Link: https://lore.kernel.org/r/20211130160507.22180-3-srinivas.kandagatla@linaro.org Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 0d24269 commit b80155f

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

sound/soc/codecs/wcd934x.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3379,7 +3379,7 @@ static int wcd934x_int_dem_inp_mux_put(struct snd_kcontrol *kc,
33793379
{
33803380
struct soc_enum *e = (struct soc_enum *)kc->private_value;
33813381
struct snd_soc_component *component;
3382-
int reg, val, ret;
3382+
int reg, val;
33833383

33843384
component = snd_soc_dapm_kcontrol_component(kc);
33853385
val = ucontrol->value.enumerated.item[0];
@@ -3402,9 +3402,7 @@ static int wcd934x_int_dem_inp_mux_put(struct snd_kcontrol *kc,
34023402
WCD934X_RX_DLY_ZN_EN_MASK,
34033403
WCD934X_RX_DLY_ZN_DISABLE);
34043404

3405-
ret = snd_soc_dapm_put_enum_double(kc, ucontrol);
3406-
3407-
return ret;
3405+
return snd_soc_dapm_put_enum_double(kc, ucontrol);
34083406
}
34093407

34103408
static int wcd934x_dec_enum_put(struct snd_kcontrol *kcontrol,

0 commit comments

Comments
 (0)