aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKurt Kanzenbach <kurt@kmk-computers.de>2015-10-28 09:01:02 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-10-28 20:10:55 -0400
commitdf58f2b9c824c248430abc701a7cf678d3616c49 (patch)
tree37b1d2848ae208048f6442bd04b31f05fab1b250
parent840a121e06d5f59cf16623e64336abc98784f6dd (diff)
Staging: rtl8192u: ieee80211: fixed position of else statements
This patch fixes the following checkpatch error: - ERROR: else should follow close brace '}' Signed-off-by: Kurt Kanzenbach <kurt@kmk-computers.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c b/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c
index dd058b6ab9fa..8091f495433f 100644
--- a/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c
+++ b/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c
@@ -326,8 +326,7 @@ static int ieee80211_tkip_encrypt(struct sk_buff *skb, int hdr_len, void *priv)
326 tkey->tx_phase1_done = 1; 326 tkey->tx_phase1_done = 1;
327 } 327 }
328 tkip_mixing_phase2(rc4key, tkey->key, tkey->tx_ttak, tkey->tx_iv16); 328 tkip_mixing_phase2(rc4key, tkey->key, tkey->tx_ttak, tkey->tx_iv16);
329 } 329 } else
330 else
331 tkey->tx_phase1_done = 1; 330 tkey->tx_phase1_done = 1;
332 331
333 332
@@ -340,8 +339,7 @@ static int ieee80211_tkip_encrypt(struct sk_buff *skb, int hdr_len, void *priv)
340 *pos++ = Hi8(tkey->tx_iv16); 339 *pos++ = Hi8(tkey->tx_iv16);
341 *pos++ = (Hi8(tkey->tx_iv16) | 0x20) & 0x7F; 340 *pos++ = (Hi8(tkey->tx_iv16) | 0x20) & 0x7F;
342 *pos++ = Lo8(tkey->tx_iv16); 341 *pos++ = Lo8(tkey->tx_iv16);
343 } 342 } else {
344 else {
345 *pos++ = rc4key[0]; 343 *pos++ = rc4key[0];
346 *pos++ = rc4key[1]; 344 *pos++ = rc4key[1];
347 *pos++ = rc4key[2]; 345 *pos++ = rc4key[2];