Commit e44e9489 authored by Markus Elfring's avatar Markus Elfring Committed by Mauro Carvalho Chehab

[media] blackfin-capture: Delete an error message for a failed memory allocation

The script "checkpatch.pl" pointed information out like the following.

WARNING: Possible unnecessary 'out of memory' message

Thus remove such a statement here.

Link: http://events.linuxfoundation.org/sites/events/files/slides/LCJ16-Refactor_Strings-WSang_0.pdfSigned-off-by: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 73446966
...@@ -802,10 +802,8 @@ static int bcap_probe(struct platform_device *pdev) ...@@ -802,10 +802,8 @@ static int bcap_probe(struct platform_device *pdev)
} }
bcap_dev = kzalloc(sizeof(*bcap_dev), GFP_KERNEL); bcap_dev = kzalloc(sizeof(*bcap_dev), GFP_KERNEL);
if (!bcap_dev) { if (!bcap_dev)
v4l2_err(pdev->dev.driver, "Unable to alloc bcap_dev\n");
return -ENOMEM; return -ENOMEM;
}
bcap_dev->cfg = config; bcap_dev->cfg = config;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment