diff options
Diffstat (limited to 'components')
| -rw-r--r-- | components/finsh/cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/finsh/cmd.c b/components/finsh/cmd.c index f8b774bd6f..a283c4f2c5 100644 --- a/components/finsh/cmd.c +++ b/components/finsh/cmd.c @@ -691,7 +691,7 @@ long list_mempool(void) mp = (struct rt_mempool *)obj; suspend_thread_count = 0; - for (node = mp->suspend_thread.next; node != &mp->suspend_thread; node = node->next) + rt_list_for_each(node, &mp->suspend_thread) { suspend_thread_count++; } |
