diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2018-04-26 12:24:18 +0200 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> | 2018-04-26 12:24:18 +0200 |
commit | bdb488e65352daca4dbab37df99f605754cfcdd8 (patch) | |
tree | 020ea43fbddae2473dbc95d4724aa3037aa5ec58 /drivers/video | |
parent | 4f7afece3afda1b6cd2768b3d2fa10464be42069 (diff) | |
download | linux-bdb488e65352daca4dbab37df99f605754cfcdd8.tar.gz linux-bdb488e65352daca4dbab37df99f605754cfcdd8.tar.bz2 linux-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.c | 4 |
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); |