backlight: hx8357: remove unnecessary OOM messages
authorJingoo Han <jg1.han@samsung.com>
Thu, 3 Apr 2014 21:49:00 +0000 (14:49 -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>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/backlight/hx8357.c

index 985e854e244b108cc2dce384dc91dbb8f5f8ea73..23f50b92a930b25f80986a529f2bad3fb5d6c877 100644 (file)
@@ -587,10 +587,8 @@ static int hx8357_probe(struct spi_device *spi)
        int i, ret;
 
        lcd = devm_kzalloc(&spi->dev, sizeof(*lcd), GFP_KERNEL);
-       if (!lcd) {
-               dev_err(&spi->dev, "Couldn't allocate lcd internal structure!\n");
+       if (!lcd)
                return -ENOMEM;
-       }
 
        ret = spi_setup(spi);
        if (ret < 0) {