Remove sanity assertion from os_arch_idle().

The assertion is correct and does not fire when the program is running
normally however it triggers a false positive when a breakpoint is set
in 'os_arch_idle()' by lldb.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/70073b52
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/70073b52
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/70073b52

Branch: refs/heads/master
Commit: 70073b52ab72de8df6e350453406e1ddd749b1cc
Parents: 473f5a8
Author: Neel Natu <[email protected]>
Authored: Fri Mar 11 16:26:15 2016 -0800
Committer: Neel Natu <[email protected]>
Committed: Fri Mar 11 16:26:15 2016 -0800

----------------------------------------------------------------------
 libs/os/src/arch/sim/os_arch_sim.c | 2 --
 1 file changed, 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/70073b52/libs/os/src/arch/sim/os_arch_sim.c
----------------------------------------------------------------------
diff --git a/libs/os/src/arch/sim/os_arch_sim.c 
b/libs/os/src/arch/sim/os_arch_sim.c
index 94182a8..d8c1b83 100644
--- a/libs/os/src/arch/sim/os_arch_sim.c
+++ b/libs/os/src/arch/sim/os_arch_sim.c
@@ -181,8 +181,6 @@ os_arch_in_critical(void)
 void
 os_arch_idle(void)
 {
-    assert(!os_arch_in_critical());
-
     sigsuspend(&nosigs);        /* Wait for a signal to wake us up */
 }
 

Reply via email to