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>
        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);