From 27d4bb43e67a263a45b4daddf4184d1db1b0c970 Mon Sep 17 00:00:00 2001 From: Masayuki Ishikawa Date: Mon, 18 Dec 2017 12:09:06 +0000 Subject: [PATCH] Merged in masayuki2009/nuttx.nuttx/lc823450_smp_test (pull request #557) sched/sched: Remove DEBUGASSERT() in sched_mergepending() Because this DEBUGASSERT() assumes that while loop executes only once. Signed-off-by: Masayuki Ishikawa Approved-by: Gregory Nutt --- sched/sched/sched_mergepending.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sched/sched/sched_mergepending.c b/sched/sched/sched_mergepending.c index 15e87ce99c..39968e6e11 100644 --- a/sched/sched/sched_mergepending.c +++ b/sched/sched/sched_mergepending.c @@ -235,7 +235,6 @@ bool sched_mergepending(void) /* Remove the task from the pending task list */ tcb = (FAR struct tcb_s *)dq_remfirst((FAR dq_queue_t *)&g_pendingtasks); - DEBUGASSERT(tcb == ptcb); /* Add the pending task to the correct ready-to-run list. */