staging: media: omap4iss: Remove unnecessary 'out of memory' message
authorKumari Radha <kumari.radha3@gmail.com>
Wed, 8 Oct 2014 07:15:44 +0000 (12:45 +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 iss.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/omap4iss/iss.c

index d548371db65adc1ccc944f6a71794f973c3227c6..6e9e869e58754bbbe9b8dfff4dc43b93de44f2bf 100644 (file)
@@ -1357,10 +1357,8 @@ static int iss_probe(struct platform_device *pdev)
                return -EINVAL;
 
        iss = devm_kzalloc(&pdev->dev, sizeof(*iss), GFP_KERNEL);
-       if (!iss) {
-               dev_err(&pdev->dev, "Could not allocate memory\n");
+       if (!iss)
                return -ENOMEM;
-       }
 
        mutex_init(&iss->iss_mutex);