diff options
author | Jingoo Han <jg1.han@samsung.com> | 2014-08-26 21:11:52 -0400 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2014-08-29 03:25:14 -0400 |
commit | e09bceac75b86c672b6e41b9341fa50325713438 (patch) | |
tree | 4e78a2dec2ce93277d9890a24e510efd4ad55d99 /drivers/video | |
parent | 547f60cee1b604477fde1cbc1bb2da8f6853c9bd (diff) |
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')
-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) | |||
566 | if (!pd->reset) { | 566 | if (!pd->reset) { |
567 | dev_err(lcd->dev, "reset is NULL.\n"); | 567 | dev_err(lcd->dev, "reset is NULL.\n"); |
568 | return -EINVAL; | 568 | return -EINVAL; |
569 | } else { | ||
570 | pd->reset(lcd->ld); | ||
571 | msleep(pd->reset_delay); | ||
572 | } | 569 | } |
573 | 570 | ||
571 | pd->reset(lcd->ld); | ||
572 | msleep(pd->reset_delay); | ||
573 | |||
574 | ret = ld9040_ldi_init(lcd); | 574 | ret = ld9040_ldi_init(lcd); |
575 | if (ret) { | 575 | if (ret) { |
576 | dev_err(lcd->dev, "failed to initialize ldi.\n"); | 576 | dev_err(lcd->dev, "failed to initialize ldi.\n"); |