Staging: rtl8192u: Correct open brace placement
authormike dupuis <mike.dupuis.0@gmail.com>
Fri, 2 Oct 2015 05:52:52 +0000 (21:52 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 Oct 2015 09:52:26 +0000 (11:52 +0200)
This is a patch to move open braces to the appropriate lines in
two instances in ieee80211_crypt_ccmp.c

Signed-off-by: Mike Dupuis <mike.dupuis.0@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c

index ca5139aaf703e59d0e263c37a919425080fc94a7..c8aaab3a427c70c839feb6afacbdaae9c2fbe1c0 100644 (file)
@@ -229,8 +229,7 @@ static int ieee80211_ccmp_encrypt(struct sk_buff *skb, int hdr_len, void *priv)
 
 
        hdr = (struct rtl_80211_hdr_4addr *) skb->data;
-       if (!tcb_desc->bHwSec)
-       {
+       if (!tcb_desc->bHwSec) {
                int blocks, last, len;
                u8 *mic;
                u8 *b0 = key->tx_b0;
@@ -320,8 +319,7 @@ static int ieee80211_ccmp_decrypt(struct sk_buff *skb, int hdr_len, void *priv)
                key->dot11RSNAStatsCCMPReplays++;
                return -4;
        }
-       if (!tcb_desc->bHwSec)
-       {
+       if (!tcb_desc->bHwSec) {
                size_t data_len = skb->len - hdr_len - CCMP_HDR_LEN - CCMP_MIC_LEN;
                u8 *mic = skb->data + skb->len - CCMP_MIC_LEN;
                u8 *b0 = key->rx_b0;