4545 *
4646 * typedef struct HeapRegion
4747 * {
48- * uint8_t *pucStartAddress; << Start address of a block of memory that will be part of the heap.
49- * size_t xSizeInBytes; << Size of the block of memory.
48+ * uint8_t *pucStartAddress; << Start address of a block of memory that will be part of the heap.
49+ * size_t xSizeInBytes; << Size of the block of memory.
5050 * } HeapRegion_t;
5151 *
5252 * The array is terminated using a NULL zero sized region definition, and the
@@ -149,7 +149,7 @@ void * pvPortMalloc( size_t xWantedSize )
149149 {
150150 /* The wanted size is increased so it can contain a BlockLink_t
151151 * structure in addition to the requested amount of bytes. */
152- if ( ( xWantedSize > 0 ) &&
152+ if ( ( xWantedSize > 0 ) &&
153153 ( ( xWantedSize + xHeapStructSize ) > xWantedSize ) ) /* Overflow check */
154154 {
155155 xWantedSize += xHeapStructSize ;
@@ -162,8 +162,8 @@ void * pvPortMalloc( size_t xWantedSize )
162162 xWantedSize )
163163 {
164164 xWantedSize += ( portBYTE_ALIGNMENT - ( xWantedSize & portBYTE_ALIGNMENT_MASK ) );
165- }
166- else
165+ }
166+ else
167167 {
168168 xWantedSize = 0 ;
169169 }
@@ -180,7 +180,7 @@ void * pvPortMalloc( size_t xWantedSize )
180180
181181 if ( ( xWantedSize > 0 ) && ( xWantedSize <= xFreeBytesRemaining ) )
182182 {
183- /* Traverse the list from the start (lowest address) block until
183+ /* Traverse the list from the start (lowest address) block until
184184 * one of adequate size is found. */
185185 pxPreviousBlock = & xStart ;
186186 pxBlock = xStart .pxNextFreeBlock ;
0 commit comments