regulator: tps80031: remove unnecessary parentheses
authorJingoo Han <jg1.han@samsung.com>
Wed, 26 Feb 2014 01:19:30 +0000 (10:19 +0900)
committerMark Brown <broonie@linaro.org>
Wed, 5 Mar 2014 04:33:18 +0000 (12:33 +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: Mark Brown <broonie@linaro.org>
drivers/regulator/tps80031-regulator.c

index ac88c988bb2e848d112aa93153dd2609519079fe..26aa6d9c308fdf1415f55a20f6d987b4260f92f8 100644 (file)
@@ -115,7 +115,7 @@ static int tps80031_reg_is_enabled(struct regulator_dev *rdev)
                        ri->rinfo->state_reg, ret);
                return ret;
        }
-       return ((reg_val & TPS80031_STATE_MASK) == TPS80031_STATE_ON);
+       return (reg_val & TPS80031_STATE_MASK) == TPS80031_STATE_ON;
 }
 
 static int tps80031_reg_enable(struct regulator_dev *rdev)