score: Always check queue in _Thread_Wait_cancel()

Commit 18c8a270c2 removed
_Thread_queue_Do_nothing_extract() so we have to check for a non-NULL
queue in all configurations.
This commit is contained in:
Sebastian Huber
2021-10-06 10:37:53 +02:00
parent 1fc3f17127
commit 3bb97a30b1

View File

@@ -2195,8 +2195,8 @@ RTEMS_INLINE_ROUTINE void _Thread_Wait_cancel(
queue = the_thread->Wait.queue;
#if defined(RTEMS_SMP)
if ( queue != NULL ) {
#if defined(RTEMS_SMP)
_Assert( queue_context->Lock_context.Wait.queue == queue );
#endif
@@ -2210,8 +2210,8 @@ RTEMS_INLINE_ROUTINE void _Thread_Wait_cancel(
#if defined(RTEMS_SMP)
_Assert( queue_context->Lock_context.Wait.queue == NULL );
queue_context->Lock_context.Wait.queue = queue;
}
#endif
}
}
/**