From: Kumari Radha Date: Wed, 8 Oct 2014 07:15:44 +0000 (+0530) Subject: staging: media: omap4iss: Remove unnecessary 'out of memory' message X-Git-Tag: v3.19-rc1~66^2~1219 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=b717a65a7b3156d8b078a72559d6ae63a1b55d54;p=karo-tx-linux.git 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 Reviewed-by: Josh Triplett Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/media/omap4iss/iss.c b/drivers/staging/media/omap4iss/iss.c index d548371db65a..6e9e869e5875 100644 --- a/drivers/staging/media/omap4iss/iss.c +++ b/drivers/staging/media/omap4iss/iss.c @@ -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);