summaryrefslogtreecommitdiffstats
path: root/nuttx/sched/os_start.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2009-11-06 01:07:32 +0000
committerpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2009-11-06 01:07:32 +0000
commit9dac4f29d4f4384e63f306e7f7097c35754e0681 (patch)
tree0179cd21c371a21f468e11fc7723a698567e31fa /nuttx/sched/os_start.c
parente0b373d5495542b011c8a9fbfdd8a2623cc0b256 (diff)
Fix compile error when workqueue disabled
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@2233 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx/sched/os_start.c')
-rw-r--r--nuttx/sched/os_start.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/sched/os_start.c b/nuttx/sched/os_start.c
index 440fdb6c3a..6f36f58a62 100644
--- a/nuttx/sched/os_start.c
+++ b/nuttx/sched/os_start.c
@@ -438,8 +438,8 @@ void os_start(void)
g_worker = task_create("work", CONFIG_SCHED_WORKPRIORITY,
CONFIG_SCHED_WORKSTACKSIZE,
(main_t)work_thread, (const char **)NULL);
-#endif
ASSERT(g_worker != ERROR);
+#endif
/* Once the operating system has been initialized, the system must be
* started by spawning the user init thread of execution.