video: sh_mobile_meram: Delete an error message for a failed memory allocation in sh_mobile_meram_probe()

Omit an extra message for a memory allocation failure in this function.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
This commit is contained in:
Markus Elfring 2018-04-26 12:24:18 +02:00 committed by Bartlomiej Zolnierkiewicz
parent 4f7afece3a
commit bdb488e653

View File

@ -642,10 +642,8 @@ static int sh_mobile_meram_probe(struct platform_device *pdev)
} }
priv = kzalloc(sizeof(*priv), GFP_KERNEL); priv = kzalloc(sizeof(*priv), GFP_KERNEL);
if (!priv) { if (!priv)
dev_err(&pdev->dev, "cannot allocate device data\n");
return -ENOMEM; return -ENOMEM;
}
/* Initialize private data. */ /* Initialize private data. */
mutex_init(&priv->lock); mutex_init(&priv->lock);