]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
staging: rtl8187se: Fix whitespaces in ieee80211/ieee80211_crypt_tkip.c
authorAna Rey <anarey@gmail.com>
Mon, 10 Mar 2014 18:18:13 +0000 (19:18 +0100)
committerPeter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
Thu, 13 Mar 2014 22:58:49 +0000 (15:58 -0700)
This patch fixes whitespaces as the codingStyle of the kernel
recommends.

Thus, this patch fixes these errors found by checkpatch.pl:

ERROR: space required before the open parenthesis '('
ERROR: space required before that '*' (ctx:OxV)
ERROR: spaces required around that '=' (ctx:VxW)

Signed-off-by: Ana Rey <anarey@gmail.com>
Reviewed-by: Bob Copeland <me@bobcopeland.com>
Signed-off-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
drivers/staging/rtl8187se/ieee80211/ieee80211_crypt_tkip.c

index c5907968e1a71fe9a639f2221c67e293739d579e..8ae98d727b787103d0e22fac68357be2a2237556 100644 (file)
@@ -307,7 +307,7 @@ static int ieee80211_tkip_encrypt(struct sk_buff *skb, int hdr_len, void *priv)
        int len;
        u8  *pos;
        struct ieee80211_hdr_4addr *hdr;
-       u8 rc4key[16],*icv;
+       u8 rc4key[16], *icv;
        u32 crc;
        struct scatterlist sg;
        int ret;
@@ -348,7 +348,7 @@ static int ieee80211_tkip_encrypt(struct sk_buff *skb, int hdr_len, void *priv)
        icv[3] = crc >> 24;
        crypto_blkcipher_setkey(tkey->tx_tfm_arc4, rc4key, 16);
        sg_init_one(&sg, pos, len + 4);
-       ret= crypto_blkcipher_encrypt(&desc, &sg, &sg, len + 4);
+       ret = crypto_blkcipher_encrypt(&desc, &sg, &sg, len + 4);
 
        tkey->tx_iv16++;
        if (tkey->tx_iv16 == 0) {
@@ -537,7 +537,7 @@ static int ieee80211_michael_mic_add(struct sk_buff *skb, int hdr_len,
 
        michael_mic_hdr(skb, tkey->tx_hdr);
 
-       if(IEEE80211_QOS_HAS_SEQ(le16_to_cpu(hdr->frame_ctl))) {
+       if (IEEE80211_QOS_HAS_SEQ(le16_to_cpu(hdr->frame_ctl))) {
                tkey->tx_hdr[12] = *(skb->data + hdr_len - 2) & 0x07;
        }
        pos = skb_put(skb, 8);
@@ -583,7 +583,7 @@ static int ieee80211_michael_mic_verify(struct sk_buff *skb, int keyidx,
                return -1;
 
        michael_mic_hdr(skb, tkey->rx_hdr);
-       if(IEEE80211_QOS_HAS_SEQ(le16_to_cpu(hdr->frame_ctl))) {
+       if (IEEE80211_QOS_HAS_SEQ(le16_to_cpu(hdr->frame_ctl))) {
                tkey->rx_hdr[12] = *(skb->data + hdr_len - 2) & 0x07;
        }