Commit bdb488e6 authored by Markus Elfring's avatar Markus Elfring Committed by Bartlomiej Zolnierkiewicz

video: sh_mobile_meram: Delete an error message for a failed memory allocation...

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: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
parent 4f7afece
...@@ -642,10 +642,8 @@ static int sh_mobile_meram_probe(struct platform_device *pdev) ...@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment