From 97b7244f1ee0efe5e6be9910df4fcd63d658d80c Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 30 Mar 2016 08:32:56 +0200 Subject: score: Fix statement with no effect warning No need to add an assert due to the fatal error parameter passed to _Objects_MP_Allocate_and_open(). --- cpukit/rtems/src/partmp.c | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'cpukit/rtems/src/partmp.c') diff --git a/cpukit/rtems/src/partmp.c b/cpukit/rtems/src/partmp.c index a02182c632..00fc8101fb 100644 --- a/cpukit/rtems/src/partmp.c +++ b/cpukit/rtems/src/partmp.c @@ -180,7 +180,6 @@ void _Partition_MP_Process_packet ( { Partition_MP_Packet *the_packet; Thread_Control *the_thread; - bool ignored; the_packet = (Partition_MP_Packet *) the_packet_prefix; @@ -188,12 +187,12 @@ void _Partition_MP_Process_packet ( case PARTITION_MP_ANNOUNCE_CREATE: - ignored = _Objects_MP_Allocate_and_open( - &_Partition_Information, - the_packet->name, - the_packet->Prefix.id, - true - ); + _Objects_MP_Allocate_and_open( + &_Partition_Information, + the_packet->name, + the_packet->Prefix.id, + true + ); _MPCI_Return_packet( the_packet_prefix ); break; @@ -260,8 +259,6 @@ void _Partition_MP_Process_packet ( break; } - - ignored; /* avoid set but not used warning */ } /* -- cgit v1.2.3