Commit dc36d7e7 authored by Axel Lin's avatar Axel Lin Committed by Linus Torvalds

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

Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 2702b152
...@@ -206,11 +206,11 @@ static ssize_t lm3639_bled_mode_store(struct device *dev, ...@@ -206,11 +206,11 @@ static ssize_t lm3639_bled_mode_store(struct device *dev,
out: out:
dev_err(pchip->dev, "%s:i2c access fail to register\n", __func__); dev_err(pchip->dev, "%s:i2c access fail to register\n", __func__);
return size; return ret;
out_input: out_input:
dev_err(pchip->dev, "%s:input conversion fail\n", __func__); dev_err(pchip->dev, "%s:input conversion fail\n", __func__);
return size; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment