Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 40b7bea1 authored by Charles Keepax's avatar Charles Keepax Committed by Mark Brown
Browse files

ASoC: dapm: Remove local OOM error message



The memory subsystem is pretty chatty on failure no need to have local
OOM messages as well.

Signed-off-by: default avatarCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Reviewed-by: default avatarLars-Peter Clausen <lars@metafoo.de>
Tested-by: default avatarLars-Peter Clausen <lars@metafoo.de>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent beb9969b
Loading
Loading
Loading
Loading
+1 −5
Original line number Original line Diff line number Diff line
@@ -310,12 +310,8 @@ static int dapm_kcontrol_data_alloc(struct snd_soc_dapm_widget *widget,
	struct soc_mixer_control *mc;
	struct soc_mixer_control *mc;


	data = kzalloc(sizeof(*data), GFP_KERNEL);
	data = kzalloc(sizeof(*data), GFP_KERNEL);
	if (!data) {
	if (!data)
		dev_err(widget->dapm->dev,
				"ASoC: can't allocate kcontrol data for %s\n",
				widget->name);
		return -ENOMEM;
		return -ENOMEM;
	}


	INIT_LIST_HEAD(&data->paths);
	INIT_LIST_HEAD(&data->paths);