diff options
author | Jingoo Han <jg1.han@samsung.com> | 2014-08-27 10:11:52 +0900 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2014-08-29 08:25:14 +0100 |
commit | e09bceac75b86c672b6e41b9341fa50325713438 (patch) | |
tree | 4e78a2dec2ce93277d9890a24e510efd4ad55d99 /drivers/video/backlight | |
parent | 547f60cee1b604477fde1cbc1bb2da8f6853c9bd (diff) | |
download | op-kernel-dev-e09bceac75b86c672b6e41b9341fa50325713438.zip op-kernel-dev-e09bceac75b86c672b6e41b9341fa50325713438.tar.gz |
backlight: ld9040: 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/ld9040.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/video/backlight/ld9040.c b/drivers/video/backlight/ld9040.c index ccb44e8..f71eaf1 100644 --- a/drivers/video/backlight/ld9040.c +++ b/drivers/video/backlight/ld9040.c @@ -566,11 +566,11 @@ static int ld9040_power_on(struct ld9040 *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 = ld9040_ldi_init(lcd); if (ret) { dev_err(lcd->dev, "failed to initialize ldi.\n"); |