mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-17 01:04:19 +08:00
backlight: l4f00242t03: 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
a82bdcfb3b
commit
1bd04820b9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user