summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems/src/timerserver.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-12-19 16:32:33 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-12-19 16:32:33 +0000
commit1de98d97138c073e8f274c978d894f9368f78115 (patch)
tree786436c2d325e53661f871b9eeade8dffa37aea3 /cpukit/rtems/src/timerserver.c
parent2008-12-19 Sebastian Huber <sebastian.huber@embedded-brains.de> (diff)
downloadrtems-1de98d97138c073e8f274c978d894f9368f78115.tar.bz2
2008-12-19 Joel Sherrill <joel.sherrill@oarcorp.com>
* rtems/src/dpmemcreate.c: Spacing. * rtems/src/timerserver.c: Move error check to RTEMS_DEBUG. Cannot happen under normal circumstances.
Diffstat (limited to 'cpukit/rtems/src/timerserver.c')
-rw-r--r--cpukit/rtems/src/timerserver.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/cpukit/rtems/src/timerserver.c b/cpukit/rtems/src/timerserver.c
index 5f4b318e35..7e48a3d57a 100644
--- a/cpukit/rtems/src/timerserver.c
+++ b/cpukit/rtems/src/timerserver.c
@@ -465,7 +465,8 @@ rtems_status_code rtems_timer_initiate_server(
(rtems_task_entry) _Timer_Server_body, /* the timer server entry point */
0 /* there is no argument */
);
- if (status) {
+
+ #if defined(RTEMS_DEBUG)
/*
* One would expect a call to rtems_task_delete() here to clean up
* but there is actually no way (in normal circumstances) that the
@@ -473,8 +474,10 @@ rtems_status_code rtems_timer_initiate_server(
* be good. If this service fails, something is weirdly wrong on the
* target such as a stray write in an ISR or incorrect memory layout.
*/
- initialized = false;
- }
+ if (status) {
+ initialized = false;
+ }
+ #endif
return status;
}