From: Jes Sorensen Date: Fri, 9 May 2014 13:03:37 +0000 (+0200) Subject: staging: rtl8723au: Remove unused ODM malloc/free functions X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=613a774d9d992e42fda12414993266c77b7120fc;p=linux-beck.git staging: rtl8723au: Remove unused ODM malloc/free functions Signed-off-by: Jes Sorensen Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8723au/hal/odm_interface.c b/drivers/staging/rtl8723au/hal/odm_interface.c index bef1269749d0..13c790f51f5f 100644 --- a/drivers/staging/rtl8723au/hal/odm_interface.c +++ b/drivers/staging/rtl8723au/hal/odm_interface.c @@ -154,28 +154,6 @@ u32 ODM_GetRFReg( return PHY_QueryRFReg(Adapter, eRFPath, RegAddr, BitMask); } -/* */ -/* ODM Memory relative API. */ -/* */ -void ODM_AllocateMemory( - struct dm_odm_t *pDM_Odm, - void **pPtr, - u32 length - ) -{ - *pPtr = rtw_zvmalloc(length); -} - -/* length could be ignored, used to detect memory leakage. */ -void ODM_FreeMemory( - struct dm_odm_t *pDM_Odm, - void *pPtr, - u32 length - ) -{ - rtw_vmfree(pPtr, length); -} - /* */ /* ODM MISC relative API. */ /* */ diff --git a/drivers/staging/rtl8723au/include/odm_interface.h b/drivers/staging/rtl8723au/include/odm_interface.h index f216b5846f92..fe0d52764990 100644 --- a/drivers/staging/rtl8723au/include/odm_interface.h +++ b/drivers/staging/rtl8723au/include/odm_interface.h @@ -104,9 +104,6 @@ u32 ODM_GetRFReg(struct dm_odm_t *pDM_Odm, enum RF_RADIO_PATH eRFPath, u32 RegAddr, u32 BitMask); /* Memory Relative Function. */ -void ODM_AllocateMemory(struct dm_odm_t *pDM_Odm, void **pPtr, u32 length); -void ODM_FreeMemory(struct dm_odm_t *pDM_Odm, void *pPtr, u32 length); - s32 ODM_CompareMemory(struct dm_odm_t *pDM_Odm, void *pBuf1, void *pBuf2, u32 length); /* ODM MISC-spin lock relative API. */