Commit 3b20b894d4b3424824c8138e564d6f97bea0f114

Authored by Jingoo Han
Committed by Linus Torvalds
1 parent 0167a95698

backlight: corgi_lcd: remove unnecessary OOM messages

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>

Showing 1 changed file with 1 additions and 3 deletions Side-by-side Diff

drivers/video/backlight/corgi_lcd.c
... ... @@ -543,10 +543,8 @@
543 543 }
544 544  
545 545 lcd = devm_kzalloc(&spi->dev, sizeof(struct corgi_lcd), GFP_KERNEL);
546   - if (!lcd) {
547   - dev_err(&spi->dev, "failed to allocate memory\n");
  546 + if (!lcd)
548 547 return -ENOMEM;
549   - }
550 548  
551 549 lcd->spi_dev = spi;
552 550