1
0
Fork 0

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

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>
hifive-unleashed-5.1
Kumari Radha 2014-10-08 12:45:44 +05:30 committed by Greg Kroah-Hartman
parent cfafe92c1e
commit b717a65a7b
1 changed files with 1 additions and 3 deletions

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