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:
parent
5ab665eb24
commit
cfafe92c1e
1 changed files with 1 additions and 3 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue