Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit df58f2b9 authored by Kurt Kanzenbach's avatar Kurt Kanzenbach Committed by Greg Kroah-Hartman
Browse files

Staging: rtl8192u: ieee80211: fixed position of else statements



This patch fixes the following checkpatch error:
  - ERROR: else should follow close brace '}'

Signed-off-by: default avatarKurt Kanzenbach <kurt@kmk-computers.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 840a121e
Loading
Loading
Loading
Loading
+2 −4
Original line number Original line Diff line number Diff line
@@ -326,8 +326,7 @@ static int ieee80211_tkip_encrypt(struct sk_buff *skb, int hdr_len, void *priv)
			tkey->tx_phase1_done = 1;
			tkey->tx_phase1_done = 1;
		}
		}
		tkip_mixing_phase2(rc4key, tkey->key, tkey->tx_ttak, tkey->tx_iv16);
		tkip_mixing_phase2(rc4key, tkey->key, tkey->tx_ttak, tkey->tx_iv16);
	}
	} else
	else
	tkey->tx_phase1_done = 1;
	tkey->tx_phase1_done = 1;




@@ -340,8 +339,7 @@ static int ieee80211_tkip_encrypt(struct sk_buff *skb, int hdr_len, void *priv)
		*pos++ = Hi8(tkey->tx_iv16);
		*pos++ = Hi8(tkey->tx_iv16);
		*pos++ = (Hi8(tkey->tx_iv16) | 0x20) & 0x7F;
		*pos++ = (Hi8(tkey->tx_iv16) | 0x20) & 0x7F;
		*pos++ = Lo8(tkey->tx_iv16);
		*pos++ = Lo8(tkey->tx_iv16);
	}
	} else {
	else {
		*pos++ = rc4key[0];
		*pos++ = rc4key[0];
		*pos++ = rc4key[1];
		*pos++ = rc4key[1];
		*pos++ = rc4key[2];
		*pos++ = rc4key[2];