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>
This commit is contained in:
parent
0167a95698
commit
3b20b894d4
1 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue