projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0167a95
)
backlight: corgi_lcd: remove unnecessary OOM messages
author
Jingoo Han
<jg1.han@samsung.com>
Thu, 3 Apr 2014 21:48:59 +0000
(14:48 -0700)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Thu, 3 Apr 2014 23:21:10 +0000
(16:21 -0700)
The site-specific OOM messages are unnecessary, because they duplicate
the MM subsystem generic OOM message.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/backlight/corgi_lcd.c
patch
|
blob
|
history
diff --git
a/drivers/video/backlight/corgi_lcd.c
b/drivers/video/backlight/corgi_lcd.c
index db8db5fa658313b356b0aa42c2c0bd9daa0f08df..51d18d637e2b88f02a9ff6ff1ff9702645d07d73 100644
(file)
--- a/
drivers/video/backlight/corgi_lcd.c
+++ b/
drivers/video/backlight/corgi_lcd.c
@@
-543,10
+543,8
@@
static int corgi_lcd_probe(struct spi_device *spi)
}
lcd = devm_kzalloc(&spi->dev, sizeof(struct corgi_lcd), GFP_KERNEL);
- if (!lcd) {
- dev_err(&spi->dev, "failed to allocate memory\n");
+ if (!lcd)
return -ENOMEM;
- }
lcd->spi_dev = spi;