drivers: staging: rtl8821ae: Fix '"(foo*)" should be "(foo *)"' errors
authorGreg Donald <gdonald@gmail.com>
Sat, 6 Sep 2014 23:40:29 +0000 (18:40 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Sep 2014 21:01:17 +0000 (14:01 -0700)
Fix checkpatch.pl '"(foo*)" should be "(foo *)"' errors

Signed-off-by: Greg Donald <gdonald@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8821ae/base.h
drivers/staging/rtl8821ae/btcoexist/halbtcoutsrc.c
drivers/staging/rtl8821ae/btcoexist/halbtcoutsrc.h
drivers/staging/rtl8821ae/core.c
drivers/staging/rtl8821ae/debug.h
drivers/staging/rtl8821ae/pci.c
drivers/staging/rtl8821ae/rtl8821ae/def.h
drivers/staging/rtl8821ae/rtl8821ae/dm.c

index 629d14f42f0bdd33ba5b7be4061eadf8ff530350..cf166f33941ed78ef949d0b76c3ee12671477c15 100644 (file)
@@ -78,33 +78,33 @@ enum ap_peer {
        SET_BITS_TO_LE_2BYTE(_hdr, 8, 1, _val)
 
 #define SET_80211_PS_POLL_AID(_hdr, _val)              \
-       WRITEEF2BYTE(((u8*)(_hdr))+2, _val)
+       WRITEEF2BYTE(((u8 *)(_hdr))+2, _val)
 #define SET_80211_PS_POLL_BSSID(_hdr, _val)            \
-       CP_MACADDR(((u8*)(_hdr))+4, (u8*)(_val))
+       CP_MACADDR(((u8 *)(_hdr))+4, (u8 *)(_val))
 #define SET_80211_PS_POLL_TA(_hdr, _val)               \
-       CP_MACADDR(((u8*)(_hdr))+10, (u8*)(_val))
+       CP_MACADDR(((u8 *)(_hdr))+10, (u8 *)(_val))
 
 #define SET_80211_HDR_DURATION(_hdr, _val)     \
-       WRITEEF2BYTE((u8*)(_hdr)+FRAME_OFFSET_DURATION, _val)
+       WRITEEF2BYTE((u8 *)(_hdr)+FRAME_OFFSET_DURATION, _val)
 #define SET_80211_HDR_ADDRESS1(_hdr, _val)     \
-       CP_MACADDR((u8*)(_hdr)+FRAME_OFFSET_ADDRESS1, (u8*)(_val))
+       CP_MACADDR((u8 *)(_hdr)+FRAME_OFFSET_ADDRESS1, (u8 *)(_val))
 #define SET_80211_HDR_ADDRESS2(_hdr, _val)     \
-       CP_MACADDR((u8*)(_hdr)+FRAME_OFFSET_ADDRESS2, (u8*)(_val))
+       CP_MACADDR((u8 *)(_hdr)+FRAME_OFFSET_ADDRESS2, (u8 *)(_val))
 #define SET_80211_HDR_ADDRESS3(_hdr, _val)     \
-       CP_MACADDR((u8*)(_hdr)+FRAME_OFFSET_ADDRESS3, (u8*)(_val))
+       CP_MACADDR((u8 *)(_hdr)+FRAME_OFFSET_ADDRESS3, (u8 *)(_val))
 #define SET_80211_HDR_FRAGMENT_SEQUENCE(_hdr, _val)  \
-       WRITEEF2BYTE((u8*)(_hdr)+FRAME_OFFSET_SEQUENCE, _val)
+       WRITEEF2BYTE((u8 *)(_hdr)+FRAME_OFFSET_SEQUENCE, _val)
 
 #define SET_BEACON_PROBE_RSP_TIME_STAMP_LOW(__phdr, __val)     \
-       WRITEEF4BYTE(((u8*)(__phdr)) + 24, __val)
+       WRITEEF4BYTE(((u8 *)(__phdr)) + 24, __val)
 #define SET_BEACON_PROBE_RSP_TIME_STAMP_HIGH(__phdr, __val) \
-       WRITEEF4BYTE(((u8*)(__phdr)) + 28, __val)
+       WRITEEF4BYTE(((u8 *)(__phdr)) + 28, __val)
 #define SET_BEACON_PROBE_RSP_BEACON_INTERVAL(__phdr, __val) \
-       WRITEEF2BYTE(((u8*)(__phdr)) + 32, __val)
+       WRITEEF2BYTE(((u8 *)(__phdr)) + 32, __val)
 #define GET_BEACON_PROBE_RSP_CAPABILITY_INFO(__phdr)           \
-       READEF2BYTE(((u8*)(__phdr)) + 34)
+       READEF2BYTE(((u8 *)(__phdr)) + 34)
 #define SET_BEACON_PROBE_RSP_CAPABILITY_INFO(__phdr, __val) \
-       WRITEEF2BYTE(((u8*)(__phdr)) + 34, __val)
+       WRITEEF2BYTE(((u8 *)(__phdr)) + 34, __val)
 #define MASK_BEACON_PROBE_RSP_CAPABILITY_INFO(__phdr, __val) \
        SET_BEACON_PROBE_RSP_CAPABILITY_INFO(__phdr, \
        (GET_BEACON_PROBE_RSP_CAPABILITY_INFO(__phdr) & (~(__val))))
index 01f5a74028a0ad1c3630719ab5aa8b7a73f17806..5fbdf339639f9582fc1d90c3cc14f0eadc4af900 100644 (file)
@@ -285,10 +285,10 @@ static bool halbtc_get(void *void_btcoexist, u8 get_type, void *out_buf)
        struct rtl_phy *rtlphy = &(rtlpriv->phy);
        struct rtl_mac *mac = rtl_mac(rtlpriv);
        struct rtl_hal *rtlhal = rtl_hal(rtlpriv);
-       bool *bool_tmp = (bool*)out_buf;
-       int *s32_tmp = (int*)out_buf;
-       u32 *u32_tmp = (u32*)out_buf;
-       u8 *u8_tmp = (u8*)out_buf;
+       bool *bool_tmp = (bool *)out_buf;
+       int *s32_tmp = (int *)out_buf;
+       u32 *u32_tmp = (u32 *)out_buf;
+       u8 *u8_tmp = (u8 *)out_buf;
        bool tmp = false;
 
 
index fd233cc85a5b53671757fdaa9bd47f2f5b9a49c2..2d4b4efda13f6a58c90528346be5ef254182db99 100644 (file)
@@ -109,7 +109,7 @@ extern u32 btc_dbg_type[];
        do {                                                    \
                if(unlikely(btc_dbg_type[dbgtype] & dbgflag)) { \
                        int __i;                                \
-                       u8* __ptr = (u8*)_Ptr;                  \
+                       u8 *__ptr = (u8 *)_Ptr;                 \
                        printk printstr;                        \
                        for( __i = 0; __i < 6; __i++ )          \
                                printk("%02X%s", __ptr[__i], (__i==5)?"":"-");\
@@ -121,7 +121,7 @@ extern u32 btc_dbg_type[];
        do {                                                            \
                if(unlikely(btc_dbg_type[dbgtype] & dbgflag) )  {       \
                        int __i;                                        \
-                       u8 *__ptr = (u8*)_hexdata;                      \
+                       u8 *__ptr = (u8 *)_hexdata;                     \
                        printk(_titlestring);                           \
                        for( __i = 0; __i < (int)_hexdatalen; __i++ ) { \
                                printk("%02X%s", __ptr[__i], (((__i + 1) % 4) \
index 046be2ce9c1a8a12070de43f8b489d5fae7defe4..73c780bbf033293dd92b1ccb266f53b5232f8e5d 100644 (file)
@@ -691,7 +691,7 @@ static void rtl_op_bss_info_changed(struct ieee80211_hw *hw,
                                rtlpriv->cfg->ops->linked_set_reg(hw);
 
                        rcu_read_lock();
-                       sta = ieee80211_find_sta(vif, (u8*)bss_conf->bssid);
+                       sta = ieee80211_find_sta(vif, (u8 *)bss_conf->bssid);
 
                        if (vif->type == NL80211_IFTYPE_STATION && sta)
                                rtlpriv->cfg->ops->update_rate_tbl(hw, sta, 0);
@@ -760,7 +760,7 @@ static void rtl_op_bss_info_changed(struct ieee80211_hw *hw,
                         ("BSS_CHANGED_HT\n"));
 
                rcu_read_lock();
-               sta = ieee80211_find_sta(vif, (u8*)bss_conf->bssid);
+               sta = ieee80211_find_sta(vif, (u8 *)bss_conf->bssid);
                if (sta) {
                        if (sta->ht_cap.ampdu_density >
                            mac->current_ampdu_density)
@@ -796,7 +796,7 @@ static void rtl_op_bss_info_changed(struct ieee80211_hw *hw,
                rtlpriv->cfg->ops->set_network_type(hw, vif->type);
 
                rcu_read_lock();
-               sta = ieee80211_find_sta(vif, (u8*)bss_conf->bssid);
+               sta = ieee80211_find_sta(vif, (u8 *)bss_conf->bssid);
                if (!sta) {
                        rcu_read_unlock();
                        goto out;
index 6c0a553e98b71e723257390b7ad63bb18684dfcd..c793f8c499e7aa69abd8fbb0fc35a0514467e01f 100644 (file)
@@ -203,7 +203,7 @@ enum dbgp_flag_e {
                if(unlikely(((_comp) & rtlpriv->dbg.global_debugcomponents ) &&\
                        (_level <= rtlpriv->dbg.global_debuglevel )))   { \
                        int __i;                                        \
-                       u8*     ptr = (u8*)_hexdata;                    \
+                       u8 *ptr = (u8 *)_hexdata;                       \
                        printk(KERN_DEBUG "%s: ", KBUILD_MODNAME);      \
                        printk(KERN_DEBUG "In process \"%s\" (pid %i):", \
                                        current->comm,  \
index b8187887d85f4aa4508173ca88ee75009d9227eb..2995230b23d240476a9040cefcad0090bfea4053 100644 (file)
@@ -897,10 +897,10 @@ static void _rtl_pci_rx_interrupt(struct ieee80211_hw *hw)
 
                        /* static bcn for roaming */
                        rtl_beacon_statistic(hw, skb);
-                       rtl_p2p_info(hw, (void*)skb->data, skb->len);
+                       rtl_p2p_info(hw, (void *)skb->data, skb->len);
                        /* for sw lps */
-                       rtl_swlps_beacon(hw, (void*)skb->data, skb->len);
-                       rtl_recognize_peer(hw, (void*)skb->data, skb->len);
+                       rtl_swlps_beacon(hw, (void *)skb->data, skb->len);
+                       rtl_recognize_peer(hw, (void *)skb->data, skb->len);
                        if ((rtlpriv->mac80211.opmode == NL80211_IFTYPE_AP) &&
                            (rtlpriv->rtlhal.current_bandtype == BAND_ON_2_4G)&&
                            (ieee80211_is_beacon(fc) ||
index 72ebdeaa6e7d1b63258e576c26074ab08b83d9f6..26644ae5ee7fe18e3ed0e2d235ddc8f93c4ee98c 100644 (file)
 #define        GET_C2H_CMD_CONTINUE(__prxhdr)          \
        LE_BITS_TO_4BYTE((__prxhdr), 31, 1)
 #define        GET_C2H_CMD_CONTENT(__prxhdr)           \
-       ((u8*)(__prxhdr) + C2H_RX_CMD_HDR_LEN)
+       ((u8 *)(__prxhdr) + C2H_RX_CMD_HDR_LEN)
 
 #define        GET_C2H_CMD_FEEDBACK_ELEMENT_ID(__pcmdfbhdr)    \
        LE_BITS_TO_4BYTE((__pcmdfbhdr), 0, 8)
index e0efcd281dfe59bc148633ad1db7df34eacaa26f..cddf1b69f1c817dee2e670bf8b0dfe00101c6e62 100644 (file)
@@ -2733,7 +2733,7 @@ void rtl8821ae_dm_dynamic_edcca(struct ieee80211_hw *hw)
        bool b_fw_current_in_ps_mode = false;
 
        rtlpriv->cfg->ops->get_hw_reg(hw,HW_VAR_FW_PSMODE_STATUS, \
-               (u8*)(&b_fw_current_in_ps_mode));
+               (u8 *)(&b_fw_current_in_ps_mode));
        if (b_fw_current_in_ps_mode)
                return;
 }