Message ID | 20181218152639.GA98084@lkp-hsx03.lkp.intel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | ASoC: cs35l36: fix returnvar.cocci warnings | expand |
--- a/sound/soc/codecs/cs35l36.c +++ b/sound/soc/codecs/cs35l36.c @@ -510,7 +510,6 @@ static int cs35l36_main_amp_event(struct struct cs35l36_private *cs35l36 = snd_soc_component_get_drvdata(component); u32 reg; - int ret = 0; switch (event) { case SND_SOC_DAPM_POST_PMU: @@ -551,7 +550,7 @@ static int cs35l36_main_amp_event(struct dev_dbg(component->dev, "Invalid event = 0x%x\n", event); } - return ret; + return 0; } static int cs35l36_boost_event(struct snd_soc_dapm_widget *w,