mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-05 10:04:12 +08:00
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: Fabio Estevam <fabio.estevam@freescale.com> Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
This commit is contained in:
parent
2c80a4923a
commit
ca7a97add4
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user