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 039ab3e97172d7035fd329800b39690597e5ed2c..67e9e910aef987f53d69c5111303b2c9f4a79e43 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 3d7f79efa2c15075d3658381877a36e7d44137a1..29a4c23a0d23d0f09890ad5a04caae71b915a695 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 73b7d864ccbde0da4dda3c7aeb1ed8f2dd90651d..9bb364f04fd49b59152fd0e792e33f161b937ee3 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 b7462e8145d6698e34b0bba91a2a4735ab478af8..977a83358056a3ac7fe7b07661426bb935bdd48d 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 0526ba077bfc8fefd94653ce541b27d0b304efd1..dbfb555235450c8aa369d66c9d7baa0ee94ed597 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 de8acc15626bb28cf30c8a5db9ff764f30f28577..1752121ff494d5274325a2aacb6e2d4945e87fe1 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 62a377e7fdc78b28e362771f2d82c75009fa7a67..a28af03c9d8adb4e4b51e5c708cd3456b7e344c3 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 c4e0ef2f52c68d6abc200ac03df99f368e944bf8..742dfa0ca8176d9a7d1b4fa508531bcccd46509d 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);