[media] coda: remove superfluous error message on devm_kzalloc failure
authorPhilipp Zabel <p.zabel@pengutronix.de>
Mon, 29 Sep 2014 12:53:43 +0000 (09:53 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 28 Oct 2014 16:18:51 +0000 (14:18 -0200)
When devm_kzalloc causes an OOM condition, this is already reported by
the MM subsystem.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/coda/coda-common.c

index 3f8a04fe01a7a8ef5511ff33bcff9f2c9e0c600c..538d4acef17e6fbf3b58c6212c04c49747f18e8b 100644 (file)
@@ -1846,11 +1846,8 @@ static int coda_probe(struct platform_device *pdev)
        int ret, irq;
 
        dev = devm_kzalloc(&pdev->dev, sizeof(*dev), GFP_KERNEL);
-       if (!dev) {
-               dev_err(&pdev->dev, "Not enough memory for %s\n",
-                       CODA_NAME);
+       if (!dev)
                return -ENOMEM;
-       }
 
        spin_lock_init(&dev->irqlock);
        INIT_LIST_HEAD(&dev->instances);