diff options
author | Jingoo Han <jg1.han@samsung.com> | 2014-08-27 03:11:52 +0200 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2014-08-29 09:25:14 +0200 |
commit | e09bceac75b86c672b6e41b9341fa50325713438 (patch) | |
tree | 4e78a2dec2ce93277d9890a24e510efd4ad55d99 /drivers/video/backlight | |
parent | backlight: ili922x: Remove 'else' after a return (diff) | |
download | linux-e09bceac75b86c672b6e41b9341fa50325713438.tar.xz linux-e09bceac75b86c672b6e41b9341fa50325713438.zip |
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 ccb44e8e4927..f71eaf10c4eb 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"); |