mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-03 15:55:38 +00:00
[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: 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>
This commit is contained in:
parent
f157cf4918
commit
6da999d935
1 changed files with 1 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue