summaryrefslogtreecommitdiff
path: root/nuttx/sched/sig_suspend.c
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2013-04-25 15:19:59 -0600
committerGregory Nutt <gnutt@nuttx.org>2013-04-25 15:19:59 -0600
commit1ffc15c3233c8d61953fc2ebc80b5d3c46fc429f (patch)
tree95050f5e635b87d26f4dd98612b05edf632b2a96 /nuttx/sched/sig_suspend.c
parent5f6e91b0ed1b373d0b4f963b0e0f8f7fe05ec766 (diff)
downloadpx4-nuttx-1ffc15c3233c8d61953fc2ebc80b5d3c46fc429f.tar.gz
px4-nuttx-1ffc15c3233c8d61953fc2ebc80b5d3c46fc429f.tar.bz2
px4-nuttx-1ffc15c3233c8d61953fc2ebc80b5d3c46fc429f.zip
Remove up_assert_code
Diffstat (limited to 'nuttx/sched/sig_suspend.c')
-rw-r--r--nuttx/sched/sig_suspend.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/nuttx/sched/sig_suspend.c b/nuttx/sched/sig_suspend.c
index bc26aa35a..e57ac4396 100644
--- a/nuttx/sched/sig_suspend.c
+++ b/nuttx/sched/sig_suspend.c
@@ -140,10 +140,7 @@ int sigsuspend(FAR const sigset_t *set)
unblocksigno = sig_lowest(&intersection);
sigpend = sig_removependingsignal(rtcb, unblocksigno);
- if (!sigpend)
- {
- PANIC(OSERR_FAILEDTOREMOVESIGNAL);
- }
+ ASSERT(sigpend);
sig_releasependingsignal(sigpend);
irqrestore(saved_state);