Skip to content

Commit

Permalink
backlight: pwm_bl: Remove error message upon devm_kzalloc() failure
Browse files Browse the repository at this point in the history
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>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
  • Loading branch information
Fabio Estevam authored and Thierry Reding committed Dec 17, 2013
1 parent 2c80a49 commit ca7a97a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/video/backlight/pwm_bl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit ca7a97a

Please sign in to comment.