summaryrefslogtreecommitdiff
path: root/cpukit/rtems/src/partmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/rtems/src/partmp.c')
-rw-r--r--cpukit/rtems/src/partmp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/cpukit/rtems/src/partmp.c b/cpukit/rtems/src/partmp.c
index ac2b48aba4..99af7adf71 100644
--- a/cpukit/rtems/src/partmp.c
+++ b/cpukit/rtems/src/partmp.c
@@ -242,8 +242,9 @@ static void _Partition_MP_Process_packet(
the_thread = _Thread_MP_Find_proxy( the_packet->proxy_id );
- if ( ! _Thread_Is_null( the_thread ) )
- _Thread_queue_Extract( the_thread );
+ if ( the_thread != NULL ) {
+ _Thread_queue_Extract( the_thread );
+ }
_MPCI_Return_packet( the_packet_prefix );
break;