Message ID | 38a6abaa-8b6c-509d-468e-fa34cf81069d@users.sourceforge.net (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index 3fa9f023bff7..4eea84d821c4 100644 --- a/sound/soc/soc-dapm.c +++ b/sound/soc/soc-dapm.c @@ -3441,7 +3441,8 @@ snd_soc_dapm_new_control_unlocked(struct snd_soc_dapm_context *dapm, const char *prefix; int ret; - if ((w = dapm_cnew_widget(widget)) == NULL) + w = dapm_cnew_widget(widget); + if (!w) return NULL; switch (w->id) {