From 1625e827ea89caafe4bdaad1b9c9b690557cac42 Mon Sep 17 00:00:00 2001 From: Wang Renxin Date: Wed, 29 Jun 2016 17:04:31 +0800 Subject: [PATCH] *polished code. --- shell/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shell/main.c b/shell/main.c index 7bf193d..9cb6fba 100755 --- a/shell/main.c +++ b/shell/main.c @@ -213,7 +213,7 @@ static void _tidy_mem_pool(bool_t force) { return; for(i = 0; i < pool_count; i++) { - while((s = pool[i].stack)) { + while(s = pool[i].stack) { pool[i].stack = (char*)_POOL_NODE_NEXT(s); _POOL_NODE_FREE(s); } @@ -292,7 +292,7 @@ static void _close_mem_pool(void) { return; for(i = 0; i < pool_count; i++) { - while((s = pool[i].stack)) { + while(s = pool[i].stack) { pool[i].stack = (char*)_POOL_NODE_NEXT(s); _POOL_NODE_FREE(s); }