From: Kuninori Morimoto Date: Wed, 15 Jul 2015 07:08:44 +0000 (+0000) Subject: ASoC: rsnd: remove unnecessary 'out of memory' message from SRC X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=33363f7a18f3baaa04b678aac8819c43296c8c9c;p=openwrt%2Fstaging%2Fblogic.git ASoC: rsnd: remove unnecessary 'out of memory' message from SRC Current checkpatch.pl indicates 'out of memory' message is unnecessary. Let's remove it Signed-off-by: Kuninori Morimoto Tested-by: Keita Kobayashi Signed-off-by: Mark Brown --- diff --git a/sound/soc/sh/rcar/src.c b/sound/soc/sh/rcar/src.c index c61c17180142..37927ca66162 100644 --- a/sound/soc/sh/rcar/src.c +++ b/sound/soc/sh/rcar/src.c @@ -1047,10 +1047,8 @@ int rsnd_src_probe(struct platform_device *pdev, return 0; src = devm_kzalloc(dev, sizeof(*src) * nr, GFP_KERNEL); - if (!src) { - dev_err(dev, "SRC allocate failed\n"); + if (!src) return -ENOMEM; - } priv->src_nr = nr; priv->src = src;