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

index 228bc319de1922251d3c4cffb5adf190c375393b..dfa0fa0d5c782c082efcd04fe9a5f1ed964787a4 100644 (file)
 
 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)