backlight: ld9040: Remove 'else' after a return
authorJingoo Han <jg1.han@samsung.com>
Wed, 27 Aug 2014 01:11:52 +0000 (10:11 +0900)
committerLee Jones <lee.jones@linaro.org>
Fri, 29 Aug 2014 07:25:14 +0000 (08:25 +0100)
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>
drivers/video/backlight/ld9040.c

index ccb44e8e492721e981bc09dd98e58338020f6c48..f71eaf10c4ebddac11a32b5ec5baf03519743dc0 100644 (file)
@@ -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");