Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ca7a97ad authored by Fabio Estevam's avatar Fabio Estevam Committed by Thierry Reding
Browse files

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



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

Signed-off-by: default avatarFabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: default avatarThierry Reding <thierry.reding@gmail.com>
parent 2c80a492
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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;
	}