staging: rtl8723au: Remove unused ODM malloc/free functions
authorJes Sorensen <Jes.Sorensen@redhat.com>
Fri, 9 May 2014 13:03:37 +0000 (15:03 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 May 2014 20:11:58 +0000 (13:11 -0700)
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/hal/odm_interface.c
drivers/staging/rtl8723au/include/odm_interface.h

index bef1269..13c790f 100644 (file)
@@ -155,28 +155,6 @@ u32 ODM_GetRFReg(
 }
 
 /*  */
-/*  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. */
 /*  */
 void
index f216b58..fe0d527 100644 (file)
@@ -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. */