[media] blackfin-capture: Delete an error message for a failed memory allocation
authorMarkus Elfring <elfring@users.sourceforge.net>
Sun, 9 Oct 2016 19:30:18 +0000 (16:30 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 16 Nov 2016 14:18:52 +0000 (12:18 -0200)
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.pdf
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/blackfin/bfin_capture.c

index c5e10439e8b9007465b507b47d94141543ab82d7..2e6edc09b58fb0bb755a0bb75cfcc45b44ad84e8 100644 (file)
@@ -802,10 +802,8 @@ static int bcap_probe(struct platform_device *pdev)
        }
 
        bcap_dev = kzalloc(sizeof(*bcap_dev), GFP_KERNEL);
-       if (!bcap_dev) {
-               v4l2_err(pdev->dev.driver, "Unable to alloc bcap_dev\n");
+       if (!bcap_dev)
                return -ENOMEM;
-       }
 
        bcap_dev->cfg = config;