]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
backlight: corgi_lcd: remove unnecessary OOM messages
authorJingoo Han <jg1.han@samsung.com>
Thu, 3 Apr 2014 21:48:59 +0000 (14:48 -0700)
committerLinus 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

index db8db5fa658313b356b0aa42c2c0bd9daa0f08df..51d18d637e2b88f02a9ff6ff1ff9702645d07d73 100644 (file)
@@ -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;