backlight: ili922x: remove unnecessary OOM messages
authorJingoo Han <jg1.han@samsung.com>
Thu, 3 Apr 2014 21:49:01 +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: Stefano Babic <sbabic@denx.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/backlight/ili922x.c

index 73464e4b4c747e32a32a8b830e1b0c936827e8a5..ea67fe199e34ed880c305fa1b0ca26f330eccccd 100644 (file)
@@ -482,10 +482,8 @@ static int ili922x_probe(struct spi_device *spi)
        u16 reg = 0;
 
        ili = devm_kzalloc(&spi->dev, sizeof(*ili), GFP_KERNEL);
-       if (!ili) {
-               dev_err(&spi->dev, "cannot alloc priv data\n");
+       if (!ili)
                return -ENOMEM;
-       }
 
        ili->spi = spi;
        spi_set_drvdata(spi, ili);