mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-22 01:04:26 +08:00
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:
@@ -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 */
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user