]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ASoC: rsnd: remove unnecessary 'out of memory' message from DVC
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Wed, 15 Jul 2015 07:09:07 +0000 (07:09 +0000)
committerMark Brown <broonie@kernel.org>
Thu, 16 Jul 2015 21:10:32 +0000 (22:10 +0100)
Current checkpatch.pl indicates 'out of memory' message is unnecessary.
Let's remove it

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tested-by: Keita Kobayashi <keita.kobayashi.ym@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sh/rcar/dvc.c

index 36fc020cbc1803cbec2a7e1a225ae8690ea84a98..dbf0da6ce8a52d635ac4bf2442bb0b2ada7f8861 100644 (file)
@@ -354,10 +354,8 @@ int rsnd_dvc_probe(struct platform_device *pdev,
        }
 
        dvc     = devm_kzalloc(dev, sizeof(*dvc) * nr, GFP_KERNEL);
-       if (!dvc) {
-               dev_err(dev, "CMD allocate failed\n");
+       if (!dvc)
                return -ENOMEM;
-       }
 
        priv->dvc_nr    = nr;
        priv->dvc       = dvc;