]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c
Staging: Drop memory allocation cast
[net-next-2.6.git] / drivers / staging / rtl8192u / ieee80211 / ieee80211_rx.c
index 7e9b367594a0d38bc48a3c54f2c484cb31ba5126..192123fbec7fa3cd8a00e9917ac46abd3cb60e54 100644 (file)
@@ -1302,7 +1302,7 @@ int ieee80211_rx(struct ieee80211_device *ieee, struct sk_buff *skb,
        /* skb: hdr + (possible reassembled) full plaintext payload */
        payload = skb->data + hdrlen;
        //ethertype = (payload[6] << 8) | payload[7];
-       rxb = (struct ieee80211_rxb*)kmalloc(sizeof(struct ieee80211_rxb),GFP_ATOMIC);
+       rxb = kmalloc(sizeof(struct ieee80211_rxb), GFP_ATOMIC);
        if(rxb == NULL)
        {
                IEEE80211_DEBUG(IEEE80211_DL_ERR,"%s(): kmalloc rxb error\n",__FUNCTION__);