From 402dad517efc986605629c9a19da877811802c5f Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 6 Jul 2009 16:44:49 +0000 Subject: 2009-07-06 Joel Sherrill * score/src/coremsgsubmit.c: Move impossible case inside an RTEMS_DEBUG conditional. --- cpukit/score/src/coremsgsubmit.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'cpukit/score/src/coremsgsubmit.c') diff --git a/cpukit/score/src/coremsgsubmit.c b/cpukit/score/src/coremsgsubmit.c index 622d645532..fbebdaa0b2 100644 --- a/cpukit/score/src/coremsgsubmit.c +++ b/cpukit/score/src/coremsgsubmit.c @@ -111,13 +111,14 @@ CORE_message_queue_Status _CORE_message_queue_Submit( the_message = _CORE_message_queue_Allocate_message_buffer( the_message_queue ); - /* - * NOTE: If the system is consistent, this error should never occur. - */ - - if ( !the_message ) { - return CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED; - } + #if defined(RTEMS_DEBUG) + /* + * NOTE: If the system is consistent, this error should never occur. + */ + + if ( !the_message ) + return CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED; + #endif _CORE_message_queue_Copy_buffer( buffer, -- cgit v1.2.3