diff mbox

backlight: pwm_bl: Remove error message upon devm_kzalloc() failure

Message ID 1385910243-4625-1-git-send-email-festevam@gmail.com
State Accepted
Headers show

Commit Message

Fabio Estevam Dec. 1, 2013, 3:04 p.m. UTC
From: Fabio Estevam <fabio.estevam@freescale.com>

No need to have a specific OOM message, since there is generic MM out of memory
message in place.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
 drivers/video/backlight/pwm_bl.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Thierry Reding Dec. 17, 2013, 9:34 a.m. UTC | #1
On Sun, Dec 01, 2013 at 01:04:03PM -0200, Fabio Estevam wrote:
> From: Fabio Estevam <fabio.estevam@freescale.com>
> 
> No need to have a specific OOM message, since there is generic MM out of memory
> message in place.
> 
> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
> ---
>  drivers/video/backlight/pwm_bl.c | 1 -
>  1 file changed, 1 deletion(-)

Applied, thanks.

Thierry
diff mbox

Patch

diff --git a/drivers/video/backlight/pwm_bl.c b/drivers/video/backlight/pwm_bl.c
index fb80d68..b75201f 100644
--- a/drivers/video/backlight/pwm_bl.c
+++ b/drivers/video/backlight/pwm_bl.c
@@ -241,7 +241,6 @@  static int pwm_backlight_probe(struct platform_device *pdev)
 
 	pb = devm_kzalloc(&pdev->dev, sizeof(*pb), GFP_KERNEL);
 	if (!pb) {
-		dev_err(&pdev->dev, "no memory for state\n");
 		ret = -ENOMEM;
 		goto err_alloc;
 	}