diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2017-10-02 05:10:33 +0000 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-10-10 10:23:11 +0100 |
commit | 08e61d03b08c99f611227c6e94c70cf0029fdeb6 (patch) | |
tree | c02fcf7b3b8addbdb72db3eedc0d6f2f81165dcf /sound/soc/soc-core.c | |
parent | d7346278ccb0fd839240d916e45851227e7ef9f4 (diff) |
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: Daniel Baluta <daniel.baluta@gmail.com>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/soc-core.c')
-rw-r--r-- | sound/soc/soc-core.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index 166b6d218fe5..a3dcf14befd8 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c @@ -3445,10 +3445,8 @@ int snd_soc_register_component(struct device *dev, struct snd_soc_component *component; component = kzalloc(sizeof(*component), GFP_KERNEL); - if (!component) { - dev_err(dev, "ASoC: Failed to allocate memory\n"); + if (!component) return -ENOMEM; - } return snd_soc_add_component(dev, component, component_driver, dai_drv, num_dai); |