staging: media: omap24xx: Remove unnecessary 'out of memory' message
authorKumari Radha <kumari.radha3@gmail.com>
Wed, 8 Oct 2014 07:14:57 +0000 (12:44 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Oct 2014 02:29:16 +0000 (10:29 +0800)
This patch removes unnecessay out of memory message fixing the following checkpach.pl warning in omap24xxcam.c:
WARNING: Possible unnecessary 'out of memory' message

Signed-off-by: Kumari Radha <kumari.radha3@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/media/omap24xx/omap24xxcam.c

index d590b3e8b70c71fe9b34c910a6735ebbb7df7c5f..5ca2bf5353fe9ee2ad66e798dce1de91b5e88768 100644 (file)
@@ -1737,10 +1737,8 @@ static int omap24xxcam_probe(struct platform_device *pdev)
        int irq;
 
        cam = kzalloc(sizeof(*cam), GFP_KERNEL);
-       if (!cam) {
-               dev_err(&pdev->dev, "could not allocate memory\n");
+       if (!cam)
                goto err;
-       }
 
        platform_set_drvdata(pdev, cam);