summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2014-04-03 23:49:03 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2014-04-04 01:21:11 +0200
commit44d516f99b96d6e55868fd4e87679f1cef6f1344 (patch)
treeedf1097ec24b90f67380fa4f4046baa293f272d2 /drivers
parentbacklight: l4f00242t03: remove unnecessary OOM messages (diff)
downloadlinux-44d516f99b96d6e55868fd4e87679f1cef6f1344.tar.xz
linux-44d516f99b96d6e55868fd4e87679f1cef6f1344.zip
backlight: lm3533_bl: remove unnecessary OOM messages
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/video/backlight/lm3533_bl.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/video/backlight/lm3533_bl.c b/drivers/video/backlight/lm3533_bl.c
index 187d1c283c1d..cff1fbe89a1b 100644
--- a/drivers/video/backlight/lm3533_bl.c
+++ b/drivers/video/backlight/lm3533_bl.c
@@ -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;