staging: rtl8712: remove spaces before commas
authorMax Perepelitsyn <mperepelitsyn@gmail.com>
Fri, 2 Jan 2015 08:08:08 +0000 (14:08 +0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Jan 2015 22:20:25 +0000 (14:20 -0800)
checkpatch.pl fix for
ERROR: space prohibited before that ',' (ctx:WxE)

Signed-off-by: Max Perepelitsyn <mperepelitsyn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8712/rtl8712_cmd.h
drivers/staging/rtl8712/rtl8712_event.h
drivers/staging/rtl8712/rtl871x_ioctl_linux.c
drivers/staging/rtl8712/rtl871x_mlme.c
drivers/staging/rtl8712/rtl871x_pwrctrl.h
drivers/staging/rtl8712/rtl871x_sta_mgt.c
drivers/staging/rtl8712/rtl871x_xmit.c
drivers/staging/rtl8712/sta_info.h

index 039ab3e..67e9e91 100644 (file)
@@ -109,16 +109,16 @@ enum rtl8712_h2c_cmd {
        GEN_CMD_CODE(_DisconnectCtrlEx), /*61*/
 
        /* To do, modify these h2c cmd, add or delete */
-       GEN_CMD_CODE(_GetH2cLbk) ,
+       GEN_CMD_CODE(_GetH2cLbk),
 
        /* WPS extra IE */
-       GEN_CMD_CODE(_SetProbeReqExtraIE) ,
-       GEN_CMD_CODE(_SetAssocReqExtraIE) ,
-       GEN_CMD_CODE(_SetProbeRspExtraIE) ,
-       GEN_CMD_CODE(_SetAssocRspExtraIE) ,
+       GEN_CMD_CODE(_SetProbeReqExtraIE),
+       GEN_CMD_CODE(_SetAssocReqExtraIE),
+       GEN_CMD_CODE(_SetProbeRspExtraIE),
+       GEN_CMD_CODE(_SetAssocRspExtraIE),
 
        /* the following is driver will do */
-       GEN_CMD_CODE(_GetCurDataRate) ,
+       GEN_CMD_CODE(_GetCurDataRate),
 
        GEN_CMD_CODE(_GetTxRetrycnt),  /* to record times that Tx retry to
                                        * transmit packet after association
index 3d7f79e..29a4c23 100644 (file)
@@ -27,7 +27,7 @@
 #define _RTL8712_EVENT_H_
 
 void r8712_event_handle(struct _adapter *padapter, uint *peventbuf);
-void r8712_got_addbareq_event_callback(struct _adapter *adapter , u8 *pbuf);
+void r8712_got_addbareq_event_callback(struct _adapter *adapter, u8 *pbuf);
 
 enum rtl8712_c2h_event {
        GEN_EVT_CODE(_Read_MACREG) = 0,         /*0*/
index 73b7d86..9bb364f 100644 (file)
@@ -196,7 +196,7 @@ static inline char *translate_scan(struct _adapter *padapter,
        if (p && ht_ielen > 0) {
                ht_cap = true;
                pht_capie = (struct ieee80211_ht_cap *)(p + 2);
-               memcpy(&mcs_rate , pht_capie->supp_mcs_set, 2);
+               memcpy(&mcs_rate, pht_capie->supp_mcs_set, 2);
        }
        /* Add the protocol name */
        iwe.cmd = SIOCGIWNAME;
@@ -1436,7 +1436,7 @@ static int r8711_wx_get_rate(struct net_device *dev,
                if (p && ht_ielen > 0) {
                        ht_cap = true;
                        pht_capie = (struct ieee80211_ht_cap *)(p + 2);
-                       memcpy(&mcs_rate , pht_capie->supp_mcs_set, 2);
+                       memcpy(&mcs_rate, pht_capie->supp_mcs_set, 2);
                        bw_40MHz = (pht_capie->cap_info &
                                    IEEE80211_HT_CAP_SUP_WIDTH) ? 1 : 0;
                        short_GI = (pht_capie->cap_info &
index b7462e8..977a833 100644 (file)
@@ -93,7 +93,7 @@ struct wlan_network *_r8712_alloc_network(struct mlme_priv *pmlmepriv)
                return NULL;
        spin_lock_irqsave(&free_queue->lock, irqL);
        plist = free_queue->queue.next;
-       pnetwork = LIST_CONTAINOR(plist , struct wlan_network, list);
+       pnetwork = LIST_CONTAINOR(plist, struct wlan_network, list);
        list_del_init(&pnetwork->list);
        pnetwork->last_scanned = jiffies;
        pmlmepriv->num_of_scanned++;
@@ -499,7 +499,7 @@ static int is_desired_network(struct _adapter *adapter,
 }
 
 /* TODO: Perry : For Power Management */
-void r8712_atimdone_event_callback(struct _adapter *adapter , u8 *pbuf)
+void r8712_atimdone_event_callback(struct _adapter *adapter, u8 *pbuf)
 {
 }
 
index 0526ba0..dbfb555 100644 (file)
 #define CMD_ALIVE      BIT(2)
 
 enum Power_Mgnt {
-       PS_MODE_ACTIVE  = 0     ,
-       PS_MODE_MIN                     ,
-       PS_MODE_MAX                     ,
-       PS_MODE_DTIM                    ,
-       PS_MODE_VOIP                    ,
-       PS_MODE_UAPSD_WMM       ,
-       PS_MODE_UAPSD                   ,
-       PS_MODE_IBSS                    ,
-       PS_MODE_WWLAN           ,
-       PM_Radio_Off                    ,
-       PM_Card_Disable         ,
+       PS_MODE_ACTIVE  = 0,
+       PS_MODE_MIN,
+       PS_MODE_MAX,
+       PS_MODE_DTIM,
+       PS_MODE_VOIP,
+       PS_MODE_UAPSD_WMM,
+       PS_MODE_UAPSD,
+       PS_MODE_IBSS,
+       PS_MODE_WWLAN,
+       PM_Radio_Off,
+       PM_Card_Disable,
        PS_MODE_NUM
 };
 
index de8acc1..1752121 100644 (file)
@@ -227,7 +227,7 @@ void r8712_free_all_stainfo(struct _adapter *padapter)
                                              struct sta_info, hash_list);
                        plist = plist->next;
                        if (pbcmc_stainfo != psta)
-                               r8712_free_stainfo(padapter , psta);
+                               r8712_free_stainfo(padapter, psta);
                }
        }
        spin_unlock_irqrestore(&pstapriv->sta_hash_lock, irqL);
index 62a377e..a28af03 100644 (file)
@@ -471,7 +471,7 @@ static sint xmitframe_swencrypt(struct _adapter *padapter,
        return _SUCCESS;
 }
 
-static sint make_wlanhdr(struct _adapter *padapter , u8 *hdr,
+static sint make_wlanhdr(struct _adapter *padapter, u8 *hdr,
                         struct pkt_attrib *pattrib)
 {
        u16 *qc;
index c4e0ef2..742dfa0 100644 (file)
@@ -135,7 +135,7 @@ u32 _r8712_init_sta_priv(struct sta_priv *pstapriv);
 u32 _r8712_free_sta_priv(struct sta_priv *pstapriv);
 struct sta_info *r8712_alloc_stainfo(struct sta_priv *pstapriv,
                                     u8 *hwaddr);
-void r8712_free_stainfo(struct _adapter *padapter , struct sta_info *psta);
+void r8712_free_stainfo(struct _adapter *padapter, struct sta_info *psta);
 void r8712_free_all_stainfo(struct _adapter *padapter);
 struct sta_info *r8712_get_stainfo(struct sta_priv *pstapriv, u8 *hwaddr);
 void r8712_init_bcmc_stainfo(struct _adapter *padapter);