Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

video: sh_mobile_lcdcfb: Delete an error message for a failed memory allocation in two functions

Omit an extra message for a memory allocation failure in these functions.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Cc: Arvind Yadav <arvind.yadav.cs@gmail.com>
Cc: Geert Uytterhoeven <geert+renesas@glider.be>
Cc: Kees Cook <keescook@chromium.org>
Cc: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>

authored by

Markus Elfring and committed by
Bartlomiej Zolnierkiewicz
e281018b bdb488e6

+2 -6
+2 -6
drivers/video/fbdev/sh_mobile_lcdcfb.c
··· 2149 2149 if (info->fbdefio) { 2150 2150 ch->sglist = vmalloc(sizeof(struct scatterlist) * 2151 2151 ch->fb_size >> PAGE_SHIFT); 2152 - if (!ch->sglist) { 2153 - dev_err(ch->lcdc->dev, "cannot allocate sglist\n"); 2152 + if (!ch->sglist) 2154 2153 return -ENOMEM; 2155 - } 2156 2154 } 2157 2155 2158 2156 info->bl_dev = ch->bl; ··· 2714 2716 } 2715 2717 2716 2718 priv = kzalloc(sizeof(*priv), GFP_KERNEL); 2717 - if (!priv) { 2718 - dev_err(&pdev->dev, "cannot allocate device data\n"); 2719 + if (!priv) 2719 2720 return -ENOMEM; 2720 - } 2721 2721 2722 2722 priv->dev = &pdev->dev; 2723 2723 priv->meram_dev = pdata->meram_dev;