summaryrefslogtreecommitdiffstats
path: root/drivers/video/backlight
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2014-08-27 03:10:34 +0200
committerLee Jones <lee.jones@linaro.org>2014-08-29 09:24:28 +0200
commit5b0d6e1912fce778b7a759e54676d492ad359934 (patch)
tree1a03db1f22b6f98f0b8d76f6b921beba328c28a9 /drivers/video/backlight
parentbacklight: adp8870: Add blank line after declarations (diff)
downloadlinux-5b0d6e1912fce778b7a759e54676d492ad359934.tar.xz
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>
Diffstat (limited to 'drivers/video/backlight')
-rw-r--r--drivers/video/backlight/ams369fg06.c6
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");