staging: rtl8188eu: eliminate spaces before commas
authorAndrzej Pietrasiewicz <andrzejtp2010@gmail.com>
Mon, 8 Jun 2015 21:16:44 +0000 (23:16 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 11 Jun 2015 01:04:04 +0000 (18:04 -0700)
Eliminate "space prohibited before that ','" errors found by checkpatch,
but do this only to lines which after the patch is applied do not
exceed 80 characters. Out of that only those lines are changed, whose
context does not exceed 80 characters in each line. In other words the
changes are limited to cases where the patch generated is itself
checkpatch-correct.

Rebased onto next-20150605.

Signed-off-by: Andrzej Pietrasiewicz <andrzejtp2010@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/core/rtw_efuse.c
drivers/staging/rtl8188eu/core/rtw_mlme.c
drivers/staging/rtl8188eu/core/rtw_mlme_ext.c
drivers/staging/rtl8188eu/core/rtw_sta_mgt.c
drivers/staging/rtl8188eu/hal/Hal8188ERateAdaptive.c
drivers/staging/rtl8188eu/hal/pwrseqcmd.c
drivers/staging/rtl8188eu/include/rtw_led.h
drivers/staging/rtl8188eu/include/rtw_mlme_ext.h
drivers/staging/rtl8188eu/include/rtw_security.h
drivers/staging/rtl8188eu/os_dep/rtw_android.c

index b66746160223ab51823836ffa0fc8510e321c240..dbaba2c6cce506946ffd7ef65eea26044c2eb11c 100644 (file)
@@ -31,7 +31,7 @@
 
 enum{
                VOLTAGE_V25                                             = 0x03,
-               LDOE25_SHIFT                                            = 28 ,
+               LDOE25_SHIFT                                            = 28,
        };
 
 /*
index 6c91aa58d924dc316022d9c7549490f176c27260..a0f9f9e63b7f9f9fc97ac35db8856c2a4c5b5017 100644 (file)
@@ -141,7 +141,7 @@ struct      wlan_network *_rtw_alloc_network(struct mlme_priv *pmlmepriv)/* _queue *f
        }
        plist = free_queue->queue.next;
 
-       pnetwork = container_of(plist , struct wlan_network, list);
+       pnetwork = container_of(plist, struct wlan_network, list);
 
        list_del_init(&pnetwork->list);
 
@@ -219,7 +219,7 @@ struct wlan_network *rtw_find_network(struct __queue *scanned_queue, u8 *addr)
        plist = phead->next;
 
        while (plist != phead) {
-               pnetwork = container_of(plist, struct wlan_network , list);
+               pnetwork = container_of(plist, struct wlan_network, list);
                if (!memcmp(addr, pnetwork->network.MacAddress, ETH_ALEN))
                        break;
                plist = plist->next;
@@ -724,11 +724,11 @@ void rtw_surveydone_event_callback(struct adapter *adapter, u8 *pbuf)
        pmlmeext = &adapter->mlmeextpriv;
 }
 
-void rtw_dummy_event_callback(struct adapter *adapter , u8 *pbuf)
+void rtw_dummy_event_callback(struct adapter *adapter, u8 *pbuf)
 {
 }
 
-void rtw_fwdbg_event_callback(struct adapter *adapter , u8 *pbuf)
+void rtw_fwdbg_event_callback(struct adapter *adapter, u8 *pbuf)
 {
 }
 
index 0169a7d3e4c2079872862290b606a5a1284f29d8..052d0f456956205107159019d06d6c46038c474c 100644 (file)
@@ -804,7 +804,7 @@ unsigned int OnAuth(struct adapter *padapter, struct recv_frame *precv_frame)
 auth_fail:
 
        if (pstat)
-               rtw_free_stainfo(padapter , pstat);
+               rtw_free_stainfo(padapter, pstat);
 
        pstat = &stat;
        memset((char *)pstat, '\0', sizeof(stat));
index 0b1cb03ab7b2a67aca9f6076069f1d66e24459aa..19b3a0d6de9ae591a3c0667f5c227a94b8b05007 100644 (file)
@@ -156,7 +156,7 @@ static void rtw_mfree_all_stainfo(struct sta_priv *pstapriv)
        plist = phead->next;
 
        while (phead != plist) {
-               psta = container_of(plist, struct sta_info , list);
+               psta = container_of(plist, struct sta_info, list);
                plist = plist->next;
        }
 
@@ -257,7 +257,7 @@ struct      sta_info *rtw_alloc_stainfo(struct sta_priv *pstapriv, u8 *hwaddr)
 
                RT_TRACE(_module_rtl871x_sta_mgt_c_, _drv_info_,
                         ("alloc number_%d stainfo  with hwaddr = %pM\n",
-                        pstapriv->asoc_sta_count , hwaddr));
+                        pstapriv->asoc_sta_count, hwaddr));
 
                init_addba_retry_timer(pstapriv->padapter, psta);
 
@@ -291,7 +291,7 @@ exit:
 }
 
 /*  using pstapriv->sta_hash_lock to protect */
-u32    rtw_free_stainfo(struct adapter *padapter , struct sta_info *psta)
+u32    rtw_free_stainfo(struct adapter *padapter, struct sta_info *psta)
 {
        int i;
        struct __queue *pfree_sta_queue;
@@ -440,12 +440,12 @@ void rtw_free_all_stainfo(struct adapter *padapter)
                plist = phead->next;
 
                while (phead != plist) {
-                       psta = container_of(plist, struct sta_info , hash_list);
+                       psta = container_of(plist, struct sta_info, hash_list);
 
                        plist = plist->next;
 
                        if (pbcmc_stainfo != psta)
-                               rtw_free_stainfo(padapter , psta);
+                               rtw_free_stainfo(padapter, psta);
                }
        }
        spin_unlock_bh(&pstapriv->sta_hash_lock);
index 082f0ca198ef6d1e81f2765554cd903da72b2bc0..15a176596305c8cd4d7536078d5c4ed748438745 100644 (file)
@@ -87,7 +87,7 @@ static u8 DROPING_NECESSARY[RATESIZE] = {
 
 static u8 PendingForRateUpFail[5] = {2, 10, 24, 40, 60};
 static u16 DynamicTxRPTTiming[6] = {
-       0x186a, 0x30d4, 0x493e, 0x61a8, 0x7a12 , 0x927c}; /*  200ms-1200ms */
+       0x186a, 0x30d4, 0x493e, 0x61a8, 0x7a12, 0x927c}; /*  200ms-1200ms */
 
 /*  End Rate adaptive parameters */
 
index 73e1f8b36b37d255e6c6e08b8f22b505ebcce5ff..3e60b23819ae995b2f3d76b16c13e1c4eafb2cc8 100644 (file)
@@ -37,7 +37,7 @@ u8 rtl88eu_pwrseqcmdparsing(struct adapter *padapter, u8 cut_vers, u8 fab_vers,
        do {
                pwrcfgcmd = pwrseqcmd[aryidx];
 
-               RT_TRACE(_module_hal_init_c_ , _drv_info_,
+               RT_TRACE(_module_hal_init_c_, _drv_info_,
                         ("rtl88eu_pwrseqcmdparsing: offset(%#x) cut_msk(%#x)"
                          "fab_msk(%#x) interface_msk(%#x) base(%#x) cmd(%#x)"
                          "msk(%#x) value(%#x)\n",
index 7a5303d50d4978daaf2a55f713a851be29fc7792..f2054ef70358ac6456371ff4290966e6934949f9 100644 (file)
@@ -30,7 +30,7 @@ enum LED_CTL_MODE {
        LED_CTL_LINK,
        LED_CTL_NO_LINK,
        LED_CTL_TX,
-       LED_CTL_RX ,
+       LED_CTL_RX,
        LED_CTL_SITE_SURVEY,
        LED_CTL_POWER_OFF,
        LED_CTL_START_TO_LINK,
index 2bd11acb4c034fcc9db58a9d4feea7396564aa65..1df586aa0a9afade21c07a7a0b2f1b5d1db22a8b 100644 (file)
@@ -759,7 +759,7 @@ enum rtw_c2h_event {
        GEN_EVT_CODE(_Survey),   /*8*/
        GEN_EVT_CODE(_SurveyDone),       /*9*/
 
-       GEN_EVT_CODE(_JoinBss) , /*10*/
+       GEN_EVT_CODE(_JoinBss), /*10*/
        GEN_EVT_CODE(_AddSTA),
        GEN_EVT_CODE(_DelSTA),
        GEN_EVT_CODE(_AtimDone),
index e9723a72af5e5269de655e2188e2c1484444d473..abe7e21e6e2014c3a084b025e69ee44a883cc086 100644 (file)
@@ -328,7 +328,7 @@ static const unsigned long K[64] = {
 #define RORc(x, y) \
        (((((unsigned long)(x) & 0xFFFFFFFFUL) >> (unsigned long)((y)&31)) | \
         ((unsigned long)(x) << (unsigned long)(32-((y)&31)))) & 0xFFFFFFFFUL)
-#define Ch(x, y , z)       (z ^ (x & (y ^ z)))
+#define Ch(x, y, z)       (z ^ (x & (y ^ z)))
 #define Maj(x, y, z)      (((x | y) & z) | (x & y))
 #define S(x, n)         RORc((x), (n))
 #define R(x, n)         (((x)&0xFFFFFFFFUL)>>(n))
index 99ce077007f4e75bc8a235f6668099fa564e4a6c..5f3337c281ee9aba652731cda908816a3e605059 100644 (file)
@@ -79,7 +79,7 @@ int rtw_android_cmdstr_to_num(char *cmdstr)
 {
        int cmd_num;
        for (cmd_num = 0; cmd_num < ANDROID_WIFI_CMD_MAX; cmd_num++)
-               if (0 == strncasecmp(cmdstr , android_wifi_cmd_str[cmd_num],
+               if (0 == strncasecmp(cmdstr, android_wifi_cmd_str[cmd_num],
                                  strlen(android_wifi_cmd_str[cmd_num])))
                        break;
        return cmd_num;