diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-03-30 08:32:56 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-03-30 08:45:57 +0200 |
commit | 97b7244f1ee0efe5e6be9910df4fcd63d658d80c (patch) | |
tree | eb49426c3fd1b96fefde8bb4b1eaa22041df946c /cpukit/rtems/src/partmp.c | |
parent | score: Fix statement with no effect warning (diff) | |
download | rtems-97b7244f1ee0efe5e6be9910df4fcd63d658d80c.tar.bz2 |
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().
Diffstat (limited to 'cpukit/rtems/src/partmp.c')
-rw-r--r-- | cpukit/rtems/src/partmp.c | 15 |
1 files changed, 6 insertions, 9 deletions
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 */ } /* |