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>
This commit is contained in:
parent
5b007dfee8
commit
3e51cd93f5
@ -27,11 +27,7 @@
|
|||||||
|
|
||||||
static int jornada_lcd_get_power(struct lcd_device *ld)
|
static int jornada_lcd_get_power(struct lcd_device *ld)
|
||||||
{
|
{
|
||||||
/* LDD2 in PPC = LCD POWER */
|
return PPSR & PPC_LDD2 ? FB_BLANK_UNBLANK : FB_BLANK_POWERDOWN;
|
||||||
if (PPSR & PPC_LDD2)
|
|
||||||
return FB_BLANK_UNBLANK; /* PW ON */
|
|
||||||
else
|
|
||||||
return FB_BLANK_POWERDOWN; /* PW OFF */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int jornada_lcd_get_contrast(struct lcd_device *ld)
|
static int jornada_lcd_get_contrast(struct lcd_device *ld)
|
||||||
|
Loading…
Reference in New Issue
Block a user