From 16faee79cb760665b535d4b9fbd0d0a1f314f7b7 Mon Sep 17 00:00:00 2001 From: Gaurav Aggarwal Date: Thu, 19 Sep 2024 04:57:28 +0000 Subject: [PATCH] Code review suggestions Signed-off-by: Gaurav Aggarwal --- portable/MemMang/heap_5.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/portable/MemMang/heap_5.c b/portable/MemMang/heap_5.c index d4b562658..0d9598cf1 100644 --- a/portable/MemMang/heap_5.c +++ b/portable/MemMang/heap_5.c @@ -133,13 +133,13 @@ * Setting configVALIDATE_HEAP_BLOCK_POINTER to 1 enables customized heap block pointers * protection on heap_5. */ #ifndef configVALIDATE_HEAP_BLOCK_POINTER - #define heapVALIDATE_BLOCK_POINTER( pxBlock ) \ - configASSERT( ( pucHeapHighAddress != NULL ) && \ - ( pucHeapLowAddress != NULL ) && \ - ( ( uint8_t * ) ( pxBlock ) >= pucHeapLowAddress ) && \ - ( ( uint8_t * ) ( pxBlock ) < pucHeapHighAddress ) ) + #define heapVALIDATE_BLOCK_POINTER( pxBlock ) \ + configASSERT( ( pucHeapHighAddress != NULL ) && \ + ( pucHeapLowAddress != NULL ) && \ + ( ( uint8_t * ) ( pxBlock ) >= pucHeapLowAddress ) && \ + ( ( uint8_t * ) ( pxBlock ) < pucHeapHighAddress ) ) #else /* ifndef configVALIDATE_HEAP_BLOCK_POINTER */ - #define heapVALIDATE_BLOCK_POINTER( pxBlock ) \ + #define heapVALIDATE_BLOCK_POINTER( pxBlock ) \ configVALIDATE_HEAP_BLOCK_POINTER( pxBlock ) #endif /* configVALIDATE_HEAP_BLOCK_POINTER */