summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-07-06 16:44:49 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-07-06 16:44:49 +0000
commit402dad517efc986605629c9a19da877811802c5f (patch)
treeb6569d2410a070d3e859e1a20aea2a839bfe9bec
parent2009-07-06 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-402dad517efc986605629c9a19da877811802c5f.tar.bz2
2009-07-06 Joel Sherrill <joel.sherrill@OARcorp.com>
* score/src/coremsgsubmit.c: Move impossible case inside an RTEMS_DEBUG conditional.
-rw-r--r--cpukit/ChangeLog5
-rw-r--r--cpukit/score/src/coremsgsubmit.c15
2 files changed, 13 insertions, 7 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog
index 3fdb5100f1..956e7d5e09 100644
--- a/cpukit/ChangeLog
+++ b/cpukit/ChangeLog
@@ -1,3 +1,8 @@
+2009-07-06 Joel Sherrill <joel.sherrill@OARcorp.com>
+
+ * score/src/coremsgsubmit.c: Move impossible case inside an RTEMS_DEBUG
+ conditional.
+
2009-07-06 Joel Sherrill <joel.sherrill@oarcorp.com>
* posix/Makefile.am, posix/src/mutex.c, posix/src/mutexinit.c: Add
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,