Commit cfafe92c authored by Kumari Radha's avatar Kumari Radha Committed by Greg Kroah-Hartman

staging: media: omap24xx: Remove unnecessary 'out of memory' message

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: default avatarKumari Radha <kumari.radha3@gmail.com>
Reviewed-by: default avatarJosh Triplett <josh@joshtriplett.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 5ab665eb
...@@ -1737,10 +1737,8 @@ static int omap24xxcam_probe(struct platform_device *pdev) ...@@ -1737,10 +1737,8 @@ static int omap24xxcam_probe(struct platform_device *pdev)
int irq; int irq;
cam = kzalloc(sizeof(*cam), GFP_KERNEL); cam = kzalloc(sizeof(*cam), GFP_KERNEL);
if (!cam) { if (!cam)
dev_err(&pdev->dev, "could not allocate memory\n");
goto err; goto err;
}
platform_set_drvdata(pdev, cam); platform_set_drvdata(pdev, cam);
......
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