Message ID | 20190726123327.10467-1-colin.king@canonical.com (mailing list archive) |
---|---|
State | Accepted |
Commit | c8415833ec242b9ddf73bf9e1057e12f9b0fcd16 |
Headers | show |
Series | [next] ASoC: codec2codec: fix missing return of error return code | expand |
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index be9bb05..2d183e2 100644 --- a/sound/soc/soc-dapm.c +++ b/sound/soc/soc-dapm.c @@ -3776,7 +3776,7 @@ snd_soc_dai_link_event_pre_pmu(struct snd_soc_dapm_widget *w, struct snd_pcm_hw_params *params = NULL; const struct snd_soc_pcm_stream *config = NULL; unsigned int fmt; - int ret; + int ret = 0; params = kzalloc(sizeof(*params), GFP_KERNEL); if (!params) @@ -3865,7 +3865,7 @@ snd_soc_dai_link_event_pre_pmu(struct snd_soc_dapm_widget *w, out: kfree(params); - return 0; + return ret; } static int snd_soc_dai_link_event(struct snd_soc_dapm_widget *w,