Skip to contentSkip to conversation

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

PATCH Applied Fabio Estevam 2 participants 2 messages Dec 1, 2013 – Dec 17, 2013

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 backlight: pwm_bl: Remove error message upon devm_kzalloc() failure

From: Fabio Estevam <[email protected]>

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

---
 drivers/video/backlight/pwm_bl.c | 1 -
 1 file changed, 1 deletion(-)
drivers/video/backlight/pwm_bl.c +0 -1
index fb80d68..b75201f 100644
@@ -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;
 	}
Signature · 1 line
1.8.1.2