[rtems commit] score: Fix statement with no effect warning
Sebastian Huber
sebh at rtems.org
Wed Mar 30 06:47:08 UTC 2016
Module: rtems
Branch: master
Commit: 97b7244f1ee0efe5e6be9910df4fcd63d658d80c
Changeset: http://git.rtems.org/rtems/commit/?id=97b7244f1ee0efe5e6be9910df4fcd63d658d80c
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Wed Mar 30 08:32:56 2016 +0200
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(-)
diff --git a/cpukit/rtems/src/partmp.c b/cpukit/rtems/src/partmp.c
index a02182c..00fc810 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 */
}
/*
More information about the vc
mailing list