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: l4f00242t03: remove unnecessary OOM messages
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
video
/
backlight
/
l4f00242t03.c
diff --git
a/drivers/video/backlight/l4f00242t03.c
b/drivers/video/backlight/l4f00242t03.c
index 63e763828e0e1a062bdc4c8577eaf3027e4b5564..5fa2649c96311ff96785f5c87780e08f262e7b2e 100644
(file)
--- a/
drivers/video/backlight/l4f00242t03.c
+++ b/
drivers/video/backlight/l4f00242t03.c
@@
-181,11
+181,8
@@
static int l4f00242t03_probe(struct spi_device *spi)
priv = devm_kzalloc(&spi->dev, sizeof(struct l4f00242t03_priv),
GFP_KERNEL);
-
- if (priv == NULL) {
- dev_err(&spi->dev, "No memory for this device.\n");
+ if (priv == NULL)
return -ENOMEM;
- }
spi_set_drvdata(spi, priv);
spi->bits_per_word = 9;