unsigned long flags;
        short single = ieee->softmac_features & IEEE_SOFTMAC_SINGLE_QUEUE;
        struct rtl_80211_hdr_3addr  *header=
-               (struct rtl_80211_hdr_3addr  *) skb->data;
+               (struct rtl_80211_hdr_3addr  *)skb->data;
 
        struct cb_desc *tcb_desc = (struct cb_desc *)(skb->cb + 8);
 
 {
        short single = ieee->softmac_features & IEEE_SOFTMAC_SINGLE_QUEUE;
        struct rtl_80211_hdr_3addr  *header =
-               (struct rtl_80211_hdr_3addr  *) skb->data;
+               (struct rtl_80211_hdr_3addr  *)skb->data;
 
        if(single){
                header->seq_ctl = cpu_to_le16(ieee->seq_ctrl[0] << 4);
        encrypt = ieee->host_encrypt && crypt && crypt->ops &&
                ((0 == strcmp(crypt->ops->name, "WEP") || wpa_ie_len));
        /* HT ralated element */
-       tmp_ht_cap_buf =(u8 *) &(ieee->pHTInfo->SelfHTCap);
+       tmp_ht_cap_buf =(u8 *)&(ieee->pHTInfo->SelfHTCap);
        tmp_ht_cap_len = sizeof(ieee->pHTInfo->SelfHTCap);
-       tmp_ht_info_buf =(u8 *) &(ieee->pHTInfo->SelfHTInfo);
+       tmp_ht_info_buf =(u8 *)&(ieee->pHTInfo->SelfHTInfo);
        tmp_ht_info_len = sizeof(ieee->pHTInfo->SelfHTInfo);
        HTConstructCapabilityElement(ieee, tmp_ht_cap_buf, &tmp_ht_cap_len,encrypt);
        HTConstructInfoElement(ieee,tmp_ht_info_buf,&tmp_ht_info_len, encrypt);
        beacon_buf->info_element[0].id = MFIE_TYPE_SSID;
        beacon_buf->info_element[0].len = ssid_len;
 
-       tag = (u8 *) beacon_buf->info_element[0].data;
+       tag = (u8 *)beacon_buf->info_element[0].data;
 
        memcpy(tag, ssid, ssid_len);
 
                return 0xcafe;
        }
        *challenge = NULL;
-       a = (struct ieee80211_authentication *) skb->data;
+       a = (struct ieee80211_authentication *)skb->data;
        if (skb->len > (sizeof(struct ieee80211_authentication) + 3)) {
                t = skb->data + sizeof(struct ieee80211_authentication);
 
                IEEE80211_DEBUG_MGMT("invalid len in auth request: %d\n",skb->len);
                return -1;
        }
-       a = (struct ieee80211_authentication *) skb->data;
+       a = (struct ieee80211_authentication *)skb->data;
 
        memcpy(dest,a->header.addr2, ETH_ALEN);
 
        u8 ssidlen = 0;
 
        struct rtl_80211_hdr_3addr   *header =
-               (struct rtl_80211_hdr_3addr   *) skb->data;
+               (struct rtl_80211_hdr_3addr   *)skb->data;
 
        if (skb->len < sizeof (struct rtl_80211_hdr_3addr  ))
                return -1; /* corrupted */
                return -1;
        }
 
-       a = (struct ieee80211_assoc_request_frame *) skb->data;
+       a = (struct ieee80211_assoc_request_frame *)skb->data;
 
        memcpy(dest,a->header.addr2,ETH_ALEN);
 
                return 0xcafe;
        }
 
-       response_head = (struct ieee80211_assoc_response_frame *) skb->data;
+       response_head = (struct ieee80211_assoc_response_frame *)skb->data;
        *aid = le16_to_cpu(response_head->aid) & 0x3fff;
 
        status_code = le16_to_cpu(response_head->status);
                        struct ieee80211_rx_stats *rx_stats, u16 type,
                        u16 stype)
 {
-       struct rtl_80211_hdr_3addr *header = (struct rtl_80211_hdr_3addr *) skb->data;
+       struct rtl_80211_hdr_3addr *header = (struct rtl_80211_hdr_3addr *)skb->data;
        u16 errcode;
        int aid;
        struct ieee80211_assoc_response_frame *assoc_resp;
        if (ieee->softmac_features & IEEE_SOFTMAC_SINGLE_QUEUE) {
                while (!ieee->queue_stop && (skb = dequeue_mgmt(ieee))){
 
-                       header = (struct rtl_80211_hdr_3addr  *) skb->data;
+                       header = (struct rtl_80211_hdr_3addr  *)skb->data;
 
                        header->seq_ctl = cpu_to_le16(ieee->seq_ctrl[0] << 4);
 
        if (!skb)
                return NULL;
 
-       b = (struct ieee80211_probe_response *) skb->data;
+       b = (struct ieee80211_probe_response *)skb->data;
        b->header.frame_ctl = cpu_to_le16(IEEE80211_STYPE_BEACON);
 
        return skb;
        if(!skb)
                return NULL;
 
-       b = (struct ieee80211_probe_response *) skb->data;
+       b = (struct ieee80211_probe_response *)skb->data;
        b->header.seq_ctl = cpu_to_le16(ieee->seq_ctrl[0] << 4);
 
        if (ieee->seq_ctrl[0] == 0xFFF)
        param->u.crypt.alg[IEEE_CRYPT_ALG_NAME_LEN - 1] = '\0';
 
        if (param_len !=
-           (int) ((char *) param->u.crypt.key - (char *) param) +
+           (int)((char *)param->u.crypt.key - (char *)param) +
            param->u.crypt.key_len) {
                printk("Len mismatch %d, %d\n", param_len,
                               param->u.crypt.key_len);