diff options
author | Jingoo Han <jg1.han@samsung.com> | 2014-08-27 05:14:43 +0400 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2014-08-29 11:26:51 +0400 |
commit | 3e51cd93f534b475c065c1513734860ce28a8da3 (patch) | |
tree | d23a1a64f05f1237211d8f47b323d827e32204ba /drivers/video | |
parent | 5b007dfee8a8a9eac95a866b1dd151e136f47aa8 (diff) | |
download | linux-3e51cd93f534b475c065c1513734860ce28a8da3.tar.xz |
backlight: jornada720: Remove 'else' after a return
Fixed the following checkpatch warning.
WARNING: else is not generally useful after a break or return
Suggested-by: Lee Jones <lee.jones@linaro.org>
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/jornada720_lcd.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/video/backlight/jornada720_lcd.c b/drivers/video/backlight/jornada720_lcd.c index 228bc319de19..dfa0fa0d5c78 100644 --- a/drivers/video/backlight/jornada720_lcd.c +++ b/drivers/video/backlight/jornada720_lcd.c @@ -27,11 +27,7 @@ static int jornada_lcd_get_power(struct lcd_device *ld) { - /* LDD2 in PPC = LCD POWER */ - if (PPSR & PPC_LDD2) - return FB_BLANK_UNBLANK; /* PW ON */ - else - return FB_BLANK_POWERDOWN; /* PW OFF */ + return PPSR & PPC_LDD2 ? FB_BLANK_UNBLANK : FB_BLANK_POWERDOWN; } static int jornada_lcd_get_contrast(struct lcd_device *ld) |