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_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>

authored by

Markus Elfring and committed by
Bartlomiej Zolnierkiewicz
bdb488e6 4f7afece

+1 -3
+1 -3
drivers/video/fbdev/sh_mobile_meram.c
··· 642 642 } 643 643 644 644 priv = kzalloc(sizeof(*priv), GFP_KERNEL); 645 - if (!priv) { 646 - dev_err(&pdev->dev, "cannot allocate device data\n"); 645 + if (!priv) 647 646 return -ENOMEM; 648 - } 649 647 650 648 /* Initialize private data. */ 651 649 mutex_init(&priv->lock);