forked from Imagelibrary/rtems
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().
This commit is contained in:
@@ -159,7 +159,6 @@ void _Semaphore_MP_Process_packet (
|
|||||||
{
|
{
|
||||||
Semaphore_MP_Packet *the_packet;
|
Semaphore_MP_Packet *the_packet;
|
||||||
Thread_Control *the_thread;
|
Thread_Control *the_thread;
|
||||||
bool ignored;
|
|
||||||
|
|
||||||
the_packet = (Semaphore_MP_Packet *) the_packet_prefix;
|
the_packet = (Semaphore_MP_Packet *) the_packet_prefix;
|
||||||
|
|
||||||
@@ -167,12 +166,12 @@ void _Semaphore_MP_Process_packet (
|
|||||||
|
|
||||||
case SEMAPHORE_MP_ANNOUNCE_CREATE:
|
case SEMAPHORE_MP_ANNOUNCE_CREATE:
|
||||||
|
|
||||||
ignored = _Objects_MP_Allocate_and_open(
|
_Objects_MP_Allocate_and_open(
|
||||||
&_Semaphore_Information,
|
&_Semaphore_Information,
|
||||||
the_packet->name,
|
the_packet->name,
|
||||||
the_packet->Prefix.id,
|
the_packet->Prefix.id,
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
|
|
||||||
_MPCI_Return_packet( the_packet_prefix );
|
_MPCI_Return_packet( the_packet_prefix );
|
||||||
break;
|
break;
|
||||||
@@ -231,8 +230,6 @@ void _Semaphore_MP_Process_packet (
|
|||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
ignored; /* avoid set but not used warning */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void _Semaphore_MP_Send_object_was_deleted (
|
void _Semaphore_MP_Send_object_was_deleted (
|
||||||
|
|||||||
Reference in New Issue
Block a user