staging: rtl8187se: fix pointer and return statement's syntax
authorMartin Kepplinger <martink@posteo.de>
Wed, 9 Apr 2014 07:25:55 +0000 (09:25 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Apr 2014 23:02:33 +0000 (16:02 -0700)
Use the common kernel coding style.

Signed-off-by: Martin Kepplinger <martink@posteo.de>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8187se/ieee80211/ieee80211_tx.c

index 0dc5ae414270de5e7a6aa6d7572ec78dcd4972bc..e6257b3b5aa88121ac661e3dc8f4d26fccf84878 100644 (file)
@@ -180,7 +180,7 @@ static inline int ieee80211_put_snap(u8 *data, u16 h_proto)
 int ieee80211_encrypt_fragment(struct ieee80211_device *ieee,
                               struct sk_buff *frag, int hdr_len)
 {
-       struct ieee80211_crypt_datacrypt = ieee->crypt[ieee->tx_keyidx];
+       struct ieee80211_crypt_data *crypt = ieee->crypt[ieee->tx_keyidx];
        int res;
 
        /*
@@ -285,7 +285,7 @@ static int ieee80211_classify(struct sk_buff *skb,
 
        if (!network->QoS_Enable) {
                skb->priority = 0;
-               return(wme_UP);
+               return wme_UP;
        }
 
        if (eh->ether_type == __constant_htons(ETHERTYPE_IP)) {
@@ -304,7 +304,7 @@ static int ieee80211_classify(struct sk_buff *skb,
        }
 
        skb->priority = wme_UP;
-       return(wme_UP);
+       return wme_UP;
 }
 
 /* SKBs are added to the ieee->tx_queue. */