projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
backlight: platform_lcd: remove unnecessary OOM messages
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
video
/
backlight
/
platform_lcd.c
diff --git
a/drivers/video/backlight/platform_lcd.c
b/drivers/video/backlight/platform_lcd.c
index d01884d4f1bff982033e2b4e68219c37290e7cce..c3d2e209fc8f5b2ed148c30deeb5bffe970756a2 100644
(file)
--- a/
drivers/video/backlight/platform_lcd.c
+++ b/
drivers/video/backlight/platform_lcd.c
@@
-94,10
+94,8
@@
static int platform_lcd_probe(struct platform_device *pdev)
plcd = devm_kzalloc(&pdev->dev, sizeof(struct platform_lcd),
GFP_KERNEL);
- if (!plcd) {
- dev_err(dev, "no memory for state\n");
+ if (!plcd)
return -ENOMEM;
- }
plcd->us = dev;
plcd->pdata = pdata;