drivers/video/backlight/lm3639_bl.c: return proper error in lm3639_bled_mode_store() error paths

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Axel Lin 2012-10-19 13:56:52 -07:00 committed by Linus Torvalds
parent 2702b1526c
commit dc36d7e7cd

View File

@ -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;
}