* [PATCH 0/4] Removed unnecessary parentheses from assignment statements
@ 2015-03-09 6:32 Tina Johnson
2015-03-09 6:32 ` [PATCH 1/4] drivers: staging: rtl8188eu: core: Removed unnecessary parentheses Tina Johnson
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Tina Johnson @ 2015-03-09 6:32 UTC (permalink / raw)
To: outreachy-kernel; +Cc: Tina Johnson
The patchset removes unnecessary parentheses around the right side of
assignment statements.
Tina Johnson (4):
drivers: staging: rtl8188eu: core: Removed unnecessary parentheses
drivers: staging: rtl8712: Removed unnecessary parentheses
drivers: staging: rtl8723au: core: Removed unnecessary parentheses
drivers: staging: rtl8723au: hal: Removed unnecessary parentheses
drivers/staging/rtl8188eu/core/rtw_security.c | 4 ++--
drivers/staging/rtl8712/rtl871x_security.c | 4 ++--
drivers/staging/rtl8723au/core/rtw_security.c | 4 ++--
drivers/staging/rtl8723au/hal/HalDMOutSrc8723A_CE.c | 2 +-
4 files changed, 7 insertions(+), 7 deletions(-)
--
1.7.10.4
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 1/4] drivers: staging: rtl8188eu: core: Removed unnecessary parentheses
2015-03-09 6:32 [PATCH 0/4] Removed unnecessary parentheses from assignment statements Tina Johnson
@ 2015-03-09 6:32 ` Tina Johnson
2015-03-09 6:32 ` [PATCH 2/4] drivers: staging: rtl8712: " Tina Johnson
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Tina Johnson @ 2015-03-09 6:32 UTC (permalink / raw)
To: outreachy-kernel; +Cc: Tina Johnson
Parentheses around the right side of an assignment statement are
unnecessary and hence removed. Coccinelle was used to produce the
patch:
@rule1@
identifier x,y;
constant c;
@@
(
x =
-(
y << c
-)
;
|
x =
-(
y >> c
-)
;
|
x =
-(
y + c
-)
;
|
x =
-(
y - c
-)
;
)
Signed-off-by: Tina Johnson <tinajohnson.1234@gmail.com>
---
drivers/staging/rtl8188eu/core/rtw_security.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/rtl8188eu/core/rtw_security.c b/drivers/staging/rtl8188eu/core/rtw_security.c
index f8981f5..cc66997 100644
--- a/drivers/staging/rtl8188eu/core/rtw_security.c
+++ b/drivers/staging/rtl8188eu/core/rtw_security.c
@@ -1122,7 +1122,7 @@ static int aes_cipher(u8 *key, uint hdrlen, u8 *pframe, uint plen)
num_blocks = plen / 16;
/* Find start of payload */
- payload_index = (hdrlen + 8);
+ payload_index = hdrlen + 8;
/* Calculate MIC */
aes128k128d(key, mic_iv, aes_out);
@@ -1366,7 +1366,7 @@ static int aes_decipher(u8 *key, uint hdrlen,
num_blocks = (plen-8) / 16;
/* Find start of payload */
- payload_index = (hdrlen + 8);
+ payload_index = hdrlen + 8;
/* Calculate MIC */
aes128k128d(key, mic_iv, aes_out);
--
1.7.10.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/4] drivers: staging: rtl8712: Removed unnecessary parentheses
2015-03-09 6:32 [PATCH 0/4] Removed unnecessary parentheses from assignment statements Tina Johnson
2015-03-09 6:32 ` [PATCH 1/4] drivers: staging: rtl8188eu: core: Removed unnecessary parentheses Tina Johnson
@ 2015-03-09 6:32 ` Tina Johnson
2015-03-09 6:32 ` [PATCH 3/4] drivers: staging: rtl8723au: core: " Tina Johnson
2015-03-09 6:32 ` [PATCH 4/4] drivers: staging: rtl8723au: hal: " Tina Johnson
3 siblings, 0 replies; 5+ messages in thread
From: Tina Johnson @ 2015-03-09 6:32 UTC (permalink / raw)
To: outreachy-kernel; +Cc: Tina Johnson
Parentheses around the right side of an assignment statement are
unnecessary and hence removed. Coccinelle was used to produce the
patch:
@rule1@
identifier x,y;
constant c;
@@
(
x =
-(
y << c
-)
;
|
x =
-(
y >> c
-)
;
|
x =
-(
y + c
-)
;
|
x =
-(
y - c
-)
;
)
Signed-off-by: Tina Johnson <tinajohnson.1234@gmail.com>
---
drivers/staging/rtl8712/rtl871x_security.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/rtl8712/rtl871x_security.c b/drivers/staging/rtl8712/rtl871x_security.c
index 4d5a288..a178c23 100644
--- a/drivers/staging/rtl8712/rtl871x_security.c
+++ b/drivers/staging/rtl8712/rtl871x_security.c
@@ -1086,7 +1086,7 @@ static sint aes_cipher(u8 *key, uint hdrlen,
payload_remainder = plen % 16;
num_blocks = plen / 16;
/* Find start of payload */
- payload_index = (hdrlen + 8);
+ payload_index = hdrlen + 8;
/* Calculate MIC */
aes128k128d(key, mic_iv, aes_out);
bitwise_xor(aes_out, mic_header1, chain_buffer);
@@ -1292,7 +1292,7 @@ static sint aes_decipher(u8 *key, uint hdrlen,
payload_remainder = (plen - 8) % 16;
num_blocks = (plen - 8) / 16;
/* Find start of payload */
- payload_index = (hdrlen + 8);
+ payload_index = hdrlen + 8;
/* Calculate MIC */
aes128k128d(key, mic_iv, aes_out);
bitwise_xor(aes_out, mic_header1, chain_buffer);
--
1.7.10.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 3/4] drivers: staging: rtl8723au: core: Removed unnecessary parentheses
2015-03-09 6:32 [PATCH 0/4] Removed unnecessary parentheses from assignment statements Tina Johnson
2015-03-09 6:32 ` [PATCH 1/4] drivers: staging: rtl8188eu: core: Removed unnecessary parentheses Tina Johnson
2015-03-09 6:32 ` [PATCH 2/4] drivers: staging: rtl8712: " Tina Johnson
@ 2015-03-09 6:32 ` Tina Johnson
2015-03-09 6:32 ` [PATCH 4/4] drivers: staging: rtl8723au: hal: " Tina Johnson
3 siblings, 0 replies; 5+ messages in thread
From: Tina Johnson @ 2015-03-09 6:32 UTC (permalink / raw)
To: outreachy-kernel; +Cc: Tina Johnson
Parentheses around the right side of an assignment statement are
unnecessary and hence removed. Coccinelle was used to produce the
patch:
@rule1@
identifier x,y;
constant c;
@@
(
x =
-(
y << c
-)
;
|
x =
-(
y >> c
-)
;
|
x =
-(
y + c
-)
;
|
x =
-(
y - c
-)
;
)
Signed-off-by: Tina Johnson <tinajohnson.1234@gmail.com>
---
drivers/staging/rtl8723au/core/rtw_security.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/rtl8723au/core/rtw_security.c b/drivers/staging/rtl8723au/core/rtw_security.c
index 715a474..0610d5f 100644
--- a/drivers/staging/rtl8723au/core/rtw_security.c
+++ b/drivers/staging/rtl8723au/core/rtw_security.c
@@ -1193,7 +1193,7 @@ static int aes_cipher(u8 *key, uint hdrlen, u8 *pframe, uint plen)
num_blocks = plen / 16;
/* Find start of payload */
- payload_index = (hdrlen + 8);
+ payload_index = hdrlen + 8;
/* Calculate MIC */
aes128k128d(key, mic_iv, aes_out);
@@ -1466,7 +1466,7 @@ static int aes_decipher(u8 *key, uint hdrlen,
num_blocks = (plen-8) / 16;
/* Find start of payload */
- payload_index = (hdrlen + 8);
+ payload_index = hdrlen + 8;
/* Calculate MIC */
aes128k128d(key, mic_iv, aes_out);
--
1.7.10.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 4/4] drivers: staging: rtl8723au: hal: Removed unnecessary parentheses
2015-03-09 6:32 [PATCH 0/4] Removed unnecessary parentheses from assignment statements Tina Johnson
` (2 preceding siblings ...)
2015-03-09 6:32 ` [PATCH 3/4] drivers: staging: rtl8723au: core: " Tina Johnson
@ 2015-03-09 6:32 ` Tina Johnson
3 siblings, 0 replies; 5+ messages in thread
From: Tina Johnson @ 2015-03-09 6:32 UTC (permalink / raw)
To: outreachy-kernel; +Cc: Tina Johnson
Parentheses around the right side of an assignment statement are
unnecessary and hence removed. Coccinelle was used to produce the
patch:
@rule1@
identifier x,y;
constant c;
@@
(
x =
-(
y << c
-)
;
|
x =
-(
y >> c
-)
;
|
x =
-(
y + c
-)
;
|
x =
-(
y - c
-)
;
)
Signed-off-by: Tina Johnson <tinajohnson.1234@gmail.com>
---
drivers/staging/rtl8723au/hal/HalDMOutSrc8723A_CE.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/rtl8723au/hal/HalDMOutSrc8723A_CE.c b/drivers/staging/rtl8723au/hal/HalDMOutSrc8723A_CE.c
index ba37374..3f9ec9e0 100644
--- a/drivers/staging/rtl8723au/hal/HalDMOutSrc8723A_CE.c
+++ b/drivers/staging/rtl8723au/hal/HalDMOutSrc8723A_CE.c
@@ -222,7 +222,7 @@ odm_TXPowerTrackingCallback_ThermalMeter_92C(struct rtw_adapter *Adapter)
}
if (CCK_index > (CCK_TABLE_SIZE-1))
- CCK_index = (CCK_TABLE_SIZE-1);
+ CCK_index = CCK_TABLE_SIZE-1;
else if (CCK_index < 0)
CCK_index = 0;
}
--
1.7.10.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-03-09 6:35 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-09 6:32 [PATCH 0/4] Removed unnecessary parentheses from assignment statements Tina Johnson
2015-03-09 6:32 ` [PATCH 1/4] drivers: staging: rtl8188eu: core: Removed unnecessary parentheses Tina Johnson
2015-03-09 6:32 ` [PATCH 2/4] drivers: staging: rtl8712: " Tina Johnson
2015-03-09 6:32 ` [PATCH 3/4] drivers: staging: rtl8723au: core: " Tina Johnson
2015-03-09 6:32 ` [PATCH 4/4] drivers: staging: rtl8723au: hal: " Tina Johnson
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.