From 42914040de1291aaf4d9a11ac98a6a9fbb02f569 Mon Sep 17 00:00:00 2001 From: tjwu1217 Date: Sat, 24 Jun 2023 09:35:48 +0000 Subject: [PATCH] mm_lock.c: reformat preprocessor format --- mm/mm_heap/mm_lock.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/mm/mm_heap/mm_lock.c b/mm/mm_heap/mm_lock.c index 1207e198d9..7118b7f16d 100644 --- a/mm/mm_heap/mm_lock.c +++ b/mm/mm_heap/mm_lock.c @@ -62,19 +62,18 @@ int mm_lock(FAR struct mm_heap_s *heap) if (up_interrupt_context()) { -#if !defined(CONFIG_SMP) +# if !defined(CONFIG_SMP) /* Check the mutex value, if held by someone, then return false. * Or, touch the heap internal data directly. */ return nxmutex_is_locked(&heap->mm_lock) ? -EAGAIN : 0; -#else +# else /* Can't take mutex in SMP interrupt handler */ return -EAGAIN; -#endif +# endif } - else #endif /* _SCHED_GETTID() returns the task ID of the task at the head of the