backlight: l4f00242t03: remove unnecessary OOM messages
authorJingoo Han <jg1.han@samsung.com>
Thu, 3 Apr 2014 21:49:02 +0000 (14:49 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 3 Apr 2014 23:21:11 +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/l4f00242t03.c

index 63e763828e0e1a062bdc4c8577eaf3027e4b5564..5fa2649c96311ff96785f5c87780e08f262e7b2e 100644 (file)
@@ -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;