diff options
Diffstat (limited to 'nuttx/sched/work_cancel.c')
-rwxr-xr-x | nuttx/sched/work_cancel.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/sched/work_cancel.c b/nuttx/sched/work_cancel.c index 1a5cce312..d3a79f0b6 100755 --- a/nuttx/sched/work_cancel.c +++ b/nuttx/sched/work_cancel.c @@ -101,8 +101,8 @@ int work_cancel(struct work_s *work) */ flags = irqsave(); - DEBUGASSERT(work->flink || (FAR dq_entry_t *)work == g_work.head); - DEBUGASSERT(work->blink || (FAR dq_entry_t *)work == g_work.tail); + DEBUGASSERT(work->dq.flink || (FAR dq_entry_t *)work == g_work.head); + DEBUGASSERT(work->dq.blink || (FAR dq_entry_t *)work == g_work.tail); dq_rem((FAR dq_entry_t *)work, &g_work); irqrestore(flags); return OK; |