staging: brcm80211: replace MFREE with kfree
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / drivers / staging / brcm80211 / brcmfmac / dhd_cdc.c
index f1d550f8f9645a342c87b32b65ec59f080b04f54..6bf321d32621c0dadf612111eb2596956ca08c43 100644 (file)
@@ -427,14 +427,14 @@ int dhd_prot_attach(dhd_pub_t *dhd)
 
 fail:
        if (cdc != NULL)
-               MFREE(dhd->osh, cdc, sizeof(dhd_prot_t));
+               kfree(cdc);
        return BCME_NOMEM;
 }
 
 /* ~NOTE~ What if another thread is waiting on the semaphore?  Holding it? */
 void dhd_prot_detach(dhd_pub_t *dhd)
 {
-       MFREE(dhd->osh, dhd->prot, sizeof(dhd_prot_t));
+       kfree(dhd->prot);
        dhd->prot = NULL;
 }