Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6da999d9 authored by Philipp Zabel's avatar Philipp Zabel Committed by Mauro Carvalho Chehab
Browse files

[media] coda: remove superfluous error message on devm_kzalloc failure



When devm_kzalloc causes an OOM condition, this is already reported by
the MM subsystem.

Signed-off-by: default avatarPhilipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: default avatarKamil Debski <k.debski@samsung.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent f157cf49
Loading
Loading
Loading
Loading
+1 −4
Original line number Original line Diff line number Diff line
@@ -1846,11 +1846,8 @@ static int coda_probe(struct platform_device *pdev)
	int ret, irq;
	int ret, irq;


	dev = devm_kzalloc(&pdev->dev, sizeof(*dev), GFP_KERNEL);
	dev = devm_kzalloc(&pdev->dev, sizeof(*dev), GFP_KERNEL);
	if (!dev) {
	if (!dev)
		dev_err(&pdev->dev, "Not enough memory for %s\n",
			CODA_NAME);
		return -ENOMEM;
		return -ENOMEM;
	}


	spin_lock_init(&dev->irqlock);
	spin_lock_init(&dev->irqlock);
	INIT_LIST_HEAD(&dev->instances);
	INIT_LIST_HEAD(&dev->instances);