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: Kumari Radha <kumari.radha3@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Kumari Radha 2014-10-08 12:44:57 +05:30 committed by Greg Kroah-Hartman
parent 5ab665eb24
commit cfafe92c1e

View 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);