staging: wilc1000: remove WILC_MemoryFree
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 15 Aug 2015 02:19:19 +0000 (19:19 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 15 Aug 2015 02:22:30 +0000 (19:22 -0700)
It's no longer needed, so remove the empty wrapper function.

Cc: Johnny Kim <johnny.kim@atmel.com>
Cc: Rachel Kim <rachel.kim@atmel.com>
Cc: Dean Lee <dean.lee@atmel.com>
Cc: Chris Park <chris.park@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/wilc_memory.c
drivers/staging/wilc1000/wilc_memory.h

index 53ba1d01632df9bb537983d28698d845bf6d7aec..e90a95705a7d5332725fc903a269f19b6fd42005 100644 (file)
@@ -14,16 +14,3 @@ void *WILC_MemoryAlloc(u32 u32Size, tstrWILC_MemoryAttrs *strAttrs,
        else
                return NULL;
 }
-
-
-
-/*!
- *  @author    syounan
- *  @date      18 Aug 2010
- *  @version   1.0
- */
-void WILC_MemoryFree(const void *pvBlock, tstrWILC_MemoryAttrs *strAttrs,
-                    char *pcFileName, u32 u32LineNo)
-{
-       kfree(pvBlock);
-}
index 78b9d5828779da653986fc3f940eded2a302c483..877617c5307f95721a487aa40bc242c46da60cc6 100644 (file)
@@ -47,27 +47,6 @@ typedef struct {
 void *WILC_MemoryAlloc(u32 u32Size, tstrWILC_MemoryAttrs *strAttrs,
                       char *pcFileName, u32 u32LineNo);
 
-
-
-/*!
- *  @brief     Frees given block
- *  @param[in] pvBlock the memory block to be freed
- *  @param[in] strAttrs Optional attributes, NULL for default
- *  @param[in] pcFileName file name of the calling code for debugging
- *  @param[in] u32LineNo line number of the calling code for debugging
- *  @note      It is recommended to use of of the wrapper macros instead of
- *              calling this function directly
- *  @sa                sttrWILC_MemoryAttrs
- *  @sa                WILC_FREE
- *  @sa                WILC_FREE_EX
- *  @sa                WILC_FREE_SET_NULL
- *  @author    syounan
- *  @date      16 Aug 2010
- *  @version   1.0
- */
-void WILC_MemoryFree(const void *pvBlock, tstrWILC_MemoryAttrs *strAttrs,
-                       char *pcFileName, u32 u32LineNo);
-
 /*!
  * @brief      standrad malloc wrapper with custom attributes
  */
@@ -75,14 +54,6 @@ void WILC_MemoryFree(const void *pvBlock, tstrWILC_MemoryAttrs *strAttrs,
        (WILC_MemoryAlloc( \
                 (__size__), __attrs__, NULL, 0))
 
-
-/*!
- * @brief      standrad free wrapper with custom attributes
- */
-       #define WILC_FREE_EX(__ptr__, __attrs__) \
-       (WILC_MemoryFree( \
-                (__ptr__), __attrs__, NULL, 0))
-
 /*!
  * @brief      Allocates a block (with custom attributes) of given type and number of
  * elements