backlight: lp8788: remove unnecessary parentheses
authorJingoo Han <jg1.han@samsung.com>
Thu, 23 Jan 2014 23:54:33 +0000 (15:54 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 24 Jan 2014 00:36:57 +0000 (16:36 -0800)
Remove unnecessary parentheses in order to fix the following checkpatch
error.

  ERROR: return is not a function, parentheses are not required

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/backlight/lp8788_bl.c

index e49905d495dcd66102df9113f068128aee4f8a7b..daba34dc46d49556738737fc0f4e21623b9d1f85 100644 (file)
@@ -63,13 +63,13 @@ static struct lp8788_bl_config default_bl_config = {
 
 static inline bool is_brightness_ctrl_by_pwm(enum lp8788_bl_ctrl_mode mode)
 {
-       return (mode == LP8788_BL_COMB_PWM_BASED);
+       return mode == LP8788_BL_COMB_PWM_BASED;
 }
 
 static inline bool is_brightness_ctrl_by_register(enum lp8788_bl_ctrl_mode mode)
 {
-       return (mode == LP8788_BL_REGISTER_ONLY ||
-               mode == LP8788_BL_COMB_REGISTER_BASED);
+       return mode == LP8788_BL_REGISTER_ONLY ||
+               mode == LP8788_BL_COMB_REGISTER_BASED;
 }
 
 static int lp8788_backlight_configure(struct lp8788_bl *bl)