linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] regulator: tps80031: remove unnecessary parentheses
@ 2014-02-26  1:19 Jingoo Han
  2014-02-26  1:21 ` [PATCH 2/3] regulator: dbx500: use seq_puts() instead of seq_printf() Jingoo Han
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Jingoo Han @ 2014-02-26  1:19 UTC (permalink / raw)
  To: 'Mark Brown'
  Cc: 'Liam Girdwood', linux-kernel, 'Jingoo Han',
	'Laxman Dewangan'

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>
---
 drivers/regulator/tps80031-regulator.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/regulator/tps80031-regulator.c b/drivers/regulator/tps80031-regulator.c
index ac88c98..26aa6d9 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)
-- 
1.7.10.4



^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-03-19 10:20 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-26  1:19 [PATCH 1/3] regulator: tps80031: remove unnecessary parentheses Jingoo Han
2014-02-26  1:21 ` [PATCH 2/3] regulator: dbx500: use seq_puts() instead of seq_printf() Jingoo Han
2014-03-19  0:19   ` Jingoo Han
2014-03-19  0:26   ` [PATCH V2] " Jingoo Han
2014-03-19 10:20     ` Mark Brown
2014-02-26  1:22 ` [PATCH 3/3] regulator: 88pm8607: fix indent code style Jingoo Han
2014-02-26  2:10   ` Haojian Zhuang
2014-02-27  4:39   ` Mark Brown
2014-03-05  4:33 ` [PATCH 1/3] regulator: tps80031: remove unnecessary parentheses Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).