public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Staging : wilc1000: Remove unnecessary parentheses
@ 2015-07-29  5:27 Shraddha Barke
  2015-07-29  8:13 ` Dan Carpenter
  0 siblings, 1 reply; 2+ messages in thread
From: Shraddha Barke @ 2015-07-29  5:27 UTC (permalink / raw)
  To: Johnny Kim, Rachel Kim, Dean Lee, Greg Kroah-Hartman,
	linux-kernel, Chris Park
  Cc: devel, Shraddha Barke

Remove parentheses around the right hand side of an assignment
as they are not needed

The semantic patch used is :

@@
expression E;
expression f;
constant C;
@@
(
f = (E == C)
|
f =
- (
  E
- )

)

Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
---
 drivers/staging/wilc1000/wilc_sdio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/wilc1000/wilc_sdio.c b/drivers/staging/wilc1000/wilc_sdio.c
index 897e47e..4b81f17 100644
--- a/drivers/staging/wilc1000/wilc_sdio.c
+++ b/drivers/staging/wilc1000/wilc_sdio.c
@@ -1072,7 +1072,7 @@ static int sdio_clear_int_ext(uint32_t val)
 						cmd.function = 0;
 						cmd.raw = 0;
 						cmd.address = 0xf8;
-						cmd.data = (1 << i);
+						cmd.data = 1 << i;
 
 						ret = g_sdio.sdio_cmd52(&cmd);
 						if (!ret) {
-- 
2.1.0


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

end of thread, other threads:[~2015-07-29  8:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-29  5:27 [PATCH] Staging : wilc1000: Remove unnecessary parentheses Shraddha Barke
2015-07-29  8:13 ` Dan Carpenter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox