mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-24 06:35:36 +08:00
score: Remove unused return value
Several SMP message processing functions returned a value. This value was always unused. Close #4822.
This commit is contained in:
@@ -166,12 +166,9 @@ RTEMS_NO_RETURN void _SMP_Start_multitasking_on_secondary_processor(
|
||||
* @param[in, out] cpu_self is the processor control of the processor executing
|
||||
* this function.
|
||||
*
|
||||
* @return Returns the processed message.
|
||||
* @param message is the message to process.
|
||||
*/
|
||||
long unsigned _SMP_Process_message(
|
||||
Per_CPU_Control *cpu_self,
|
||||
long unsigned message
|
||||
);
|
||||
void _SMP_Process_message( Per_CPU_Control *cpu_self, long unsigned message );
|
||||
|
||||
/**
|
||||
* @brief Tries to process the current SMP message.
|
||||
@@ -200,10 +197,8 @@ void _SMP_Try_to_process_message(
|
||||
*
|
||||
* @param[in, out] cpu_self is the processor control of the processor executing
|
||||
* this function.
|
||||
*
|
||||
* @return Returns the processed message.
|
||||
*/
|
||||
static inline long unsigned _SMP_Inter_processor_interrupt_handler(
|
||||
static inline void _SMP_Inter_processor_interrupt_handler(
|
||||
Per_CPU_Control *cpu_self
|
||||
)
|
||||
{
|
||||
@@ -222,10 +217,8 @@ static inline long unsigned _SMP_Inter_processor_interrupt_handler(
|
||||
);
|
||||
|
||||
if ( RTEMS_PREDICT_FALSE( message != 0 ) ) {
|
||||
return _SMP_Process_message( cpu_self, message );
|
||||
_SMP_Process_message( cpu_self, message );
|
||||
}
|
||||
|
||||
return message;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -311,10 +311,7 @@ void _SMP_Request_shutdown( void )
|
||||
}
|
||||
}
|
||||
|
||||
long unsigned _SMP_Process_message(
|
||||
Per_CPU_Control *cpu_self,
|
||||
long unsigned message
|
||||
)
|
||||
void _SMP_Process_message( Per_CPU_Control *cpu_self, long unsigned message )
|
||||
{
|
||||
if ( ( message & SMP_MESSAGE_SHUTDOWN ) != 0 ) {
|
||||
ISR_Level level;
|
||||
@@ -332,8 +329,6 @@ long unsigned _SMP_Process_message(
|
||||
if ( ( message & SMP_MESSAGE_PERFORM_JOBS ) != 0 ) {
|
||||
_Per_CPU_Perform_jobs( cpu_self );
|
||||
}
|
||||
|
||||
return message;
|
||||
}
|
||||
|
||||
void _SMP_Try_to_process_message(
|
||||
|
||||
Reference in New Issue
Block a user