Staging: Drop memory allocation cast
[safe/jmp/linux-2.6] / drivers / staging / rt2860 / common / cmm_mac_pci.c
index 560ebd3..e26ba49 100644 (file)
@@ -1558,7 +1558,7 @@ void RT28xxPciMlmeRadioOFF(struct rt_rtmp_adapter *pAd)
                if (INFRA_ON(pAd) || ADHOC_ON(pAd)) {
                        struct rt_mlme_disassoc_req DisReq;
                        struct rt_mlme_queue_elem *pMsgElem =
-                           (struct rt_mlme_queue_elem *)kmalloc(sizeof(struct rt_mlme_queue_elem),
+                           kmalloc(sizeof(struct rt_mlme_queue_elem),
                                                        MEM_ALLOC_FLAG);
 
                        if (pMsgElem) {