Commit 08e61d03 authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Mark Brown

ASoC: soc-core: remove unnecessary message from snd_soc_register_component()

No need to print an error message if kzalloc fails.
The core will print it.
Reported-by: default avatarDaniel Baluta <daniel.baluta@gmail.com>
Signed-off-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent d7346278
...@@ -3445,10 +3445,8 @@ int snd_soc_register_component(struct device *dev, ...@@ -3445,10 +3445,8 @@ int snd_soc_register_component(struct device *dev,
struct snd_soc_component *component; struct snd_soc_component *component;
component = kzalloc(sizeof(*component), GFP_KERNEL); component = kzalloc(sizeof(*component), GFP_KERNEL);
if (!component) { if (!component)
dev_err(dev, "ASoC: Failed to allocate memory\n");
return -ENOMEM; return -ENOMEM;
}
return snd_soc_add_component(dev, component, component_driver, return snd_soc_add_component(dev, component, component_driver,
dai_drv, num_dai); dai_drv, num_dai);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment