summaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2014-08-27 10:11:52 +0900
committerLee Jones <lee.jones@linaro.org>2014-08-29 08:25:14 +0100
commite09bceac75b86c672b6e41b9341fa50325713438 (patch)
tree4e78a2dec2ce93277d9890a24e510efd4ad55d99 /drivers/video
parent547f60cee1b604477fde1cbc1bb2da8f6853c9bd (diff)
downloadlinux-e09bceac75b86c672b6e41b9341fa50325713438.tar.gz
linux-e09bceac75b86c672b6e41b9341fa50325713438.tar.bz2
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')
-rw-r--r--drivers/video/backlight/ld9040.c6
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");