diff options
| author | Markus Elfring <elfring@users.sourceforge.net> | 2018-04-26 06:24:18 -0400 |
|---|---|---|
| committer | Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> | 2018-04-26 06:24:18 -0400 |
| commit | bdb488e65352daca4dbab37df99f605754cfcdd8 (patch) | |
| tree | 020ea43fbddae2473dbc95d4724aa3037aa5ec58 | |
| parent | 4f7afece3afda1b6cd2768b3d2fa10464be42069 (diff) | |
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>
| -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) | |||
| 642 | } | 642 | } |
| 643 | 643 | ||
| 644 | priv = kzalloc(sizeof(*priv), GFP_KERNEL); | 644 | priv = kzalloc(sizeof(*priv), GFP_KERNEL); |
| 645 | if (!priv) { | 645 | if (!priv) |
| 646 | dev_err(&pdev->dev, "cannot allocate device data\n"); | ||
| 647 | return -ENOMEM; | 646 | return -ENOMEM; |
| 648 | } | ||
| 649 | 647 | ||
| 650 | /* Initialize private data. */ | 648 | /* Initialize private data. */ |
| 651 | mutex_init(&priv->lock); | 649 | mutex_init(&priv->lock); |
