aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/rt2860/common
diff options
context:
space:
mode:
authorJulia Lawall <julia@diku.dk>2010-10-26 12:25:30 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2010-11-09 14:05:22 -0800
commit61241d97db02559bd83d21ffa783ab327945b925 (patch)
tree99e1a5d33d9aa2bf2287a8682084554ca7c513f8 /drivers/staging/rt2860/common
parentStaging: ath6kl: Adapt API changes in cfg80211 (diff)
downloadlinux-dev-61241d97db02559bd83d21ffa783ab327945b925.tar.xz
linux-dev-61241d97db02559bd83d21ffa783ab327945b925.zip
drivers/staging: delete double assignment
Delete successive assignments to the same location. In three of the cases, the two assignments are identical. In the case of the file rt2860/common/cmm_aes.c, the assigned variable i is never used, so both assignments are dropped. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // <smpl> @@ expression i; @@ *i = ...; i = ...; // </smpl> Signed-off-by: Julia Lawall <julia@diku.dk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/rt2860/common')
-rw-r--r--drivers/staging/rt2860/common/cmm_aes.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/staging/rt2860/common/cmm_aes.c b/drivers/staging/rt2860/common/cmm_aes.c
index 1d159ff82fd2..a99879bada42 100644
--- a/drivers/staging/rt2860/common/cmm_aes.c
+++ b/drivers/staging/rt2860/common/cmm_aes.c
@@ -330,8 +330,6 @@ void construct_mic_iv(unsigned char *mic_iv,
for (i = 8; i < 14; i++)
mic_iv[i] = pn_vector[13 - i]; /* mic_iv[8:13] = PN[5:0] */
#endif
- i = (payload_length / 256);
- i = (payload_length % 256);
mic_iv[14] = (unsigned char)(payload_length / 256);
mic_iv[15] = (unsigned char)(payload_length % 256);