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: Charles Keepax <ckeepax@opensource.wolfsonmicro.com> Reviewed-by: Lars-Peter Clausen <lars@metafoo.de> Tested-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
beb9969b8a
commit
40b7bea10a
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user