summaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8712/rtl871x_security.c
diff options
context:
space:
mode:
authorTina Johnson2015-03-09 07:32:48 +0100
committerGreg Kroah-Hartman2015-03-09 13:37:22 +0100
commit69e2b47fa082dffad06643c85be2d36f4ef6ab9c (patch)
tree193201c09e05c2cf44b349bcc71fc812384663b2 /drivers/staging/rtl8712/rtl871x_security.c
parentdrivers: staging: rtl8188eu: core: Removed unnecessary parentheses (diff)
downloadkernel-qcow2-linux-69e2b47fa082dffad06643c85be2d36f4ef6ab9c.tar.gz
kernel-qcow2-linux-69e2b47fa082dffad06643c85be2d36f4ef6ab9c.tar.xz
kernel-qcow2-linux-69e2b47fa082dffad06643c85be2d36f4ef6ab9c.zip
drivers: staging: rtl8712: Removed unnecessary parentheses
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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8712/rtl871x_security.c')
-rw-r--r--drivers/staging/rtl8712/rtl871x_security.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/rtl8712/rtl871x_security.c b/drivers/staging/rtl8712/rtl871x_security.c
index 4d5a2889b775..a178c232b44a 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);