pkarashchenko commented on code in PR #9433:
URL: https://github.com/apache/nuttx/pull/9433#discussion_r1211290437


##########
mm/mempool/mempool.c:
##########
@@ -416,19 +416,15 @@ mempool_info_task(FAR struct mempool_s *pool,
       info.aordblks += count;
       info.uordblks += count * pool->blocksize;
     }
+#if CONFIG_MM_BACKTRACE < 0
   else if (dump->pid == MM_BACKTRACE_ALLOC_PID)
     {
-#if CONFIG_MM_BACKTRACE >= 0
-      size_t count = list_length(&pool->alist);
-#else
       size_t count = pool->nalloc;
-#endif
 
       info.aordblks += count;
       info.uordblks += count * pool->blocksize;
-      info.aordblks -= pool->nexpend;
-      info.uordblks -= pool->totalsize;
     }
+#endif
 #if CONFIG_MM_BACKTRACE >= 0

Review Comment:
   ```suggestion
   #else
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to