video: sh_mobile_meram: Delete an error message for a failed memory allocation in sh_mobile_meram_probe()
Subsystems (2)
PATCH 1/1 video: sh_mobile_meram: Delete an error message for a failed memory allocation in sh_mobile_meram_probe()
From: Markus Elfring <[email protected]>
Date: Sun, 26 Nov 2017 13:08:43 +0100
Omit an extra message for a memory allocation failure in this function.
This issue was detected by using the Coccinelle software.
--- drivers/video/fbdev/sh_mobile_meram.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/video/fbdev/sh_mobile_meram.c +1 -3
@@ -644,10 +644,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);
Signature · 1 line
2.15.0
Quoted 8 lines · SF Markus Elfring
From: Markus Elfring <[email protected]>
Date: Sun, 26 Nov 2017 13:08:43 +0100Omit 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 <[email protected]>
I've done requested audit regarding multiple fb devices support myself now and it is okay to apply this patch.
Patch queued for 4.18, thanks.
Best regards,
--
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung Electronics