aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sound/soc/soc-dapm.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c
index 79b947820231..beb48b608142 100644
--- a/sound/soc/soc-dapm.c
+++ b/sound/soc/soc-dapm.c
@@ -310,12 +310,8 @@ static int dapm_kcontrol_data_alloc(struct snd_soc_dapm_widget *widget,
310 struct soc_mixer_control *mc; 310 struct soc_mixer_control *mc;
311 311
312 data = kzalloc(sizeof(*data), GFP_KERNEL); 312 data = kzalloc(sizeof(*data), GFP_KERNEL);
313 if (!data) { 313 if (!data)
314 dev_err(widget->dapm->dev,
315 "ASoC: can't allocate kcontrol data for %s\n",
316 widget->name);
317 return -ENOMEM; 314 return -ENOMEM;
318 }
319 315
320 INIT_LIST_HEAD(&data->paths); 316 INIT_LIST_HEAD(&data->paths);
321 317