From dba8d95bf059eba5790dbd530cd254293bff0876 Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Fri, 12 Oct 2012 15:22:43 +1100 Subject: [PATCH] drivers/video/backlight/lm3639_bl.c: return proper error in lm3639_bled_mode_store() error paths Signed-off-by: Axel Lin Signed-off-by: Andrew Morton --- drivers/video/backlight/lm3639_bl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/video/backlight/lm3639_bl.c b/drivers/video/backlight/lm3639_bl.c index c6915c6c3cd1..585949b57055 100644 --- a/drivers/video/backlight/lm3639_bl.c +++ b/drivers/video/backlight/lm3639_bl.c @@ -206,11 +206,11 @@ static ssize_t lm3639_bled_mode_store(struct device *dev, out: dev_err(pchip->dev, "%s:i2c access fail to register\n", __func__); - return size; + return ret; out_input: dev_err(pchip->dev, "%s:input conversion fail\n", __func__); - return size; + return ret; } -- 2.39.5