From: Axel Lin Date: Fri, 19 Oct 2012 20:56:52 +0000 (-0700) Subject: drivers/video/backlight/lm3639_bl.c: return proper error in lm3639_bled_mode_store... X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=dc36d7e7cd422d69b15e7ec7cc1f021f581a6b6d;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Linus Torvalds --- 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; }