From d82a8cce2184ece51c097f749536dbe0b7e65e22 Mon Sep 17 00:00:00 2001 From: "bernard.xiong@gmail.com" Date: Wed, 16 May 2012 06:18:58 +0000 Subject: fixed module unload issue; code cleanup for timer.c git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2119 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- src/idle.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/idle.c') diff --git a/src/idle.c b/src/idle.c index db0fa38751..96b743ad90 100644 --- a/src/idle.c +++ b/src/idle.c @@ -138,11 +138,11 @@ void rt_thread_idle_excute(void) { module->nref --; } - } - /* unload module */ - if (module->nref == 0) - rt_module_unload(module); + /* unload module */ + if (module->nref == 0) + rt_module_unload(module); + } #endif } } -- cgit v1.3.1