diff options
author | Jingoo Han <jg1.han@samsung.com> | 2014-08-27 10:10:34 +0900 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2014-08-29 08:24:28 +0100 |
commit | 5b0d6e1912fce778b7a759e54676d492ad359934 (patch) | |
tree | 1a03db1f22b6f98f0b8d76f6b921beba328c28a9 | |
parent | fe9a86235dd6367ea6748bc4f9e03fe1f7a15614 (diff) | |
download | linux-5b0d6e1912fce778b7a759e54676d492ad359934.tar.gz linux-5b0d6e1912fce778b7a759e54676d492ad359934.tar.bz2 linux-5b0d6e1912fce778b7a759e54676d492ad359934.zip |
backlight: ams369fg06: Remove 'else' after a return
Fixed the following checkpatch warning.
WARNING: else is not generally useful after a break or return
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
-rw-r--r-- | drivers/video/backlight/ams369fg06.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/video/backlight/ams369fg06.c b/drivers/video/backlight/ams369fg06.c index 4726c8be626f..5f897f99cc9b 100644 --- a/drivers/video/backlight/ams369fg06.c +++ b/drivers/video/backlight/ams369fg06.c @@ -325,11 +325,11 @@ static int ams369fg06_power_on(struct ams369fg06 *lcd) if (!pd->reset) { dev_err(lcd->dev, "reset is NULL.\n"); return -EINVAL; - } else { - pd->reset(lcd->ld); - msleep(pd->reset_delay); } + pd->reset(lcd->ld); + msleep(pd->reset_delay); + ret = ams369fg06_ldi_init(lcd); if (ret) { dev_err(lcd->dev, "failed to initialize ldi.\n"); |