mm: Remove mm_ prefix from mm_[add|free]_delaylist
follow the convention of other static mm functions Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
b567e09c3c
commit
85b4177913
|
@ -37,7 +37,7 @@
|
|||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
static void mm_add_delaylist(FAR struct mm_heap_s *heap, FAR void *mem)
|
||||
static void add_delaylist(FAR struct mm_heap_s *heap, FAR void *mem)
|
||||
{
|
||||
#if defined(CONFIG_BUILD_FLAT) || defined(__KERNEL__)
|
||||
FAR struct mm_delaynode_s *tmp = mem;
|
||||
|
@ -91,7 +91,7 @@ void mm_free(FAR struct mm_heap_s *heap, FAR void *mem)
|
|||
* Then add to the delay list.
|
||||
*/
|
||||
|
||||
mm_add_delaylist(heap, mem);
|
||||
add_delaylist(heap, mem);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
static void mm_free_delaylist(FAR struct mm_heap_s *heap)
|
||||
static void free_delaylist(FAR struct mm_heap_s *heap)
|
||||
{
|
||||
#if defined(CONFIG_BUILD_FLAT) || defined(__KERNEL__)
|
||||
FAR struct mm_delaynode_s *tmp;
|
||||
|
@ -111,7 +111,7 @@ FAR void *mm_malloc(FAR struct mm_heap_s *heap, size_t size)
|
|||
|
||||
/* Free the delay list first */
|
||||
|
||||
mm_free_delaylist(heap);
|
||||
free_delaylist(heap);
|
||||
|
||||
/* Ignore zero-length allocations */
|
||||
|
||||
|
|
Loading…
Reference in New Issue