mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 13:11:40 +00:00
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
@ -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 New Issue
Block a user