diff options
Diffstat (limited to 'cpukit/itron/src/ref_mbf.c')
-rw-r--r-- | cpukit/itron/src/ref_mbf.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/cpukit/itron/src/ref_mbf.c b/cpukit/itron/src/ref_mbf.c index 00bbcb5ddd..f7f076e65b 100644 --- a/cpukit/itron/src/ref_mbf.c +++ b/cpukit/itron/src/ref_mbf.c @@ -32,16 +32,16 @@ ER ref_mbf( ITRON_Message_buffer_Control *the_message_buffer; Objects_Locations location; CORE_message_queue_Control *the_core_msgq; - + if ( !pk_rmbf ) return E_PAR; /* XXX check this error code */ the_message_buffer = _ITRON_Message_buffer_Get( mbfid, &location ); - switch ( location ) { + switch ( location ) { case OBJECTS_REMOTE: /* Multiprocessing not supported */ case OBJECTS_ERROR: return _ITRON_Message_buffer_Clarify_get_id_error( mbfid ); - + case OBJECTS_LOCAL: the_core_msgq = &the_message_buffer->message_queue; @@ -55,13 +55,13 @@ ER ref_mbf( pk_rmbf->msgsz = ((CORE_message_queue_Buffer_control *) the_core_msgq->Pending_messages.first)->Contents.size; } - + /* * Fill in the size of free buffer */ pk_rmbf->frbufsz = - (the_core_msgq->maximum_pending_messages - + (the_core_msgq->maximum_pending_messages - the_core_msgq->number_of_pending_messages) * the_core_msgq->maximum_message_size; @@ -70,7 +70,7 @@ ER ref_mbf( * Fill in whether or not there is a waiting task */ - if ( !_Thread_queue_First(&the_core_msgq->Wait_queue ) ) + if ( !_Thread_queue_First(&the_core_msgq->Wait_queue ) ) pk_rmbf->wtsk = FALSE; else pk_rmbf->wtsk = TRUE; @@ -78,6 +78,6 @@ ER ref_mbf( pk_rmbf->stsk = FALSE; _Thread_Enable_dispatch(); return E_OK; - } + } return E_OK; } |