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:
Родитель
2702b1526c
Коммит
dc36d7e7cd
|
@ -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;
|
||||
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче