@@ -155,8 +155,6 @@ void *OSA_MemoryAllocate(uint32_t memLength)
155
155
/* Allocating on the System Heap */
156
156
void * p = k_malloc (memLength );
157
157
158
- OSA_ASSERT (p != NULL , "Memory of length: %u, could not be allocated\r\n" , memLength );
159
-
160
158
if (p != NULL )
161
159
{
162
160
(void )memset (p , 0 , memLength );
@@ -167,8 +165,6 @@ void *OSA_MemoryAllocate(uint32_t memLength)
167
165
168
166
void OSA_MemoryFree (void * p )
169
167
{
170
- OSA_ASSERT (p != NULL , "Trying to free memory pointing to NULL\r\n" );
171
-
172
168
if (p != NULL )
173
169
{
174
170
k_free (p );
@@ -180,8 +176,6 @@ void *OSA_MemoryAllocateAlign(uint32_t memLength, uint32_t alignbytes)
180
176
/* Allocating on the System Heap */
181
177
void * p = k_aligned_alloc (alignbytes , memLength );
182
178
183
- OSA_ASSERT (p != NULL , "Memory of length: %u, could not be allocated\r\n" , memLength );
184
-
185
179
if (p != NULL )
186
180
{
187
181
(void )memset (p , 0 , memLength );
@@ -192,8 +186,6 @@ void *OSA_MemoryAllocateAlign(uint32_t memLength, uint32_t alignbytes)
192
186
193
187
void OSA_MemoryFreeAlign (void * p )
194
188
{
195
- OSA_ASSERT (p != NULL , "Trying to free memory pointing to NULL\r\n" );
196
-
197
189
if (p != NULL )
198
190
{
199
191
k_free (p );
0 commit comments