backlight: lm3533_bl: remove unnecessary OOM messages
authorJingoo Han <jg1.han@samsung.com>
Thu, 3 Apr 2014 21:49:03 +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>
Acked-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/backlight/lm3533_bl.c

index 187d1c283c1ddcdb2a1ad06554fffdcdf3e54f4e..cff1fbe89a1bf547ed206e7979352dfaa4b0692b 100644 (file)
@@ -296,11 +296,8 @@ static int lm3533_bl_probe(struct platform_device *pdev)
        }
 
        bl = devm_kzalloc(&pdev->dev, sizeof(*bl), GFP_KERNEL);
-       if (!bl) {
-               dev_err(&pdev->dev,
-                               "failed to allocate memory for backlight\n");
+       if (!bl)
                return -ENOMEM;
-       }
 
        bl->lm3533 = lm3533;
        bl->id = pdev->id;