summaryrefslogtreecommitdiffstats
path: root/drivers/video/backlight/lm3533_bl.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/backlight/lm3533_bl.c')
-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 187d1c283c1..cff1fbe89a1 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;