From: Jingoo Han Date: Wed, 26 Feb 2014 01:19:30 +0000 (+0900) Subject: regulator: tps80031: remove unnecessary parentheses X-Git-Tag: firefly_0821_release~176^2~4202^2^6 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=350ff52d409da8e081bcd79dd64d2093be896134;p=firefly-linux-kernel-4.4.55.git regulator: tps80031: remove unnecessary parentheses 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 Signed-off-by: Mark Brown --- diff --git a/drivers/regulator/tps80031-regulator.c b/drivers/regulator/tps80031-regulator.c index ac88c988bb2e..26aa6d9c308f 100644 --- a/drivers/regulator/tps80031-regulator.c +++ b/drivers/regulator/tps80031-regulator.c @@ -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)