aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2018-04-26 12:24:18 +0200
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>2018-04-26 12:24:18 +0200
commitbdb488e65352daca4dbab37df99f605754cfcdd8 (patch)
tree020ea43fbddae2473dbc95d4724aa3037aa5ec58 /drivers/video
parentvideo: fbdev: sh_mobile_meram: Drop SUPERH platform dependency (diff)
downloadlinux-dev-bdb488e65352daca4dbab37df99f605754cfcdd8.tar.xz
linux-dev-bdb488e65352daca4dbab37df99f605754cfcdd8.zip
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>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/fbdev/sh_mobile_meram.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/video/fbdev/sh_mobile_meram.c b/drivers/video/fbdev/sh_mobile_meram.c
index f5d8bd7ef509..da9df12f63f0 100644
--- a/drivers/video/fbdev/sh_mobile_meram.c
+++ b/drivers/video/fbdev/sh_mobile_meram.c
@@ -642,10 +642,8 @@ static int sh_mobile_meram_probe(struct platform_device *pdev)
}
priv = kzalloc(sizeof(*priv), GFP_KERNEL);
- if (!priv) {
- dev_err(&pdev->dev, "cannot allocate device data\n");
+ if (!priv)
return -ENOMEM;
- }
/* Initialize private data. */
mutex_init(&priv->lock);