Skip to content

Commit

Permalink
drivers/video/backlight/lm3639_bl.c: return proper error in lm3639_bl…
Browse files Browse the repository at this point in the history
…ed_mode_store() error paths

Signed-off-by: Axel Lin <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
AxelLin authored and torvalds committed Oct 19, 2012
1 parent 2702b15 commit dc36d7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/video/backlight/lm3639_bl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

}

Expand Down

0 comments on commit dc36d7e

Please sign in to comment.