summaryrefslogtreecommitdiffstats
path: root/cpukit/libfs/src/pipe
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2010-08-02 18:27:23 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2010-08-02 18:27:23 +0000
commit8851c0a5ef60f8ed98ceda73f9430e023e823a57 (patch)
treed8f23141fcd65d8072be7febdd12ab9bd9cd4cfc /cpukit/libfs/src/pipe
parent2010-08-02 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-8851c0a5ef60f8ed98ceda73f9430e023e823a57.tar.bz2
2010-08-02 Joel Sherrill <joel.sherrill@oarcorp.com>
* libfs/src/imfs/imfs_creat.c, libfs/src/imfs/imfs_eval.c, libfs/src/imfs/imfs_mknod.c, libfs/src/imfs/imfs_readlink.c, libfs/src/pipe/fifo.c: Clean up for coverage improvements and formatting.
Diffstat (limited to 'cpukit/libfs/src/pipe')
-rw-r--r--cpukit/libfs/src/pipe/fifo.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/cpukit/libfs/src/pipe/fifo.c b/cpukit/libfs/src/pipe/fifo.c
index 38b90ed36e..a19ef617a3 100644
--- a/cpukit/libfs/src/pipe/fifo.c
+++ b/cpukit/libfs/src/pipe/fifo.c
@@ -190,10 +190,11 @@ static void pipe_unlock(void)
rtems_status_code sc = RTEMS_SUCCESSFUL;
sc = rtems_semaphore_release(pipe_semaphore);
- if (sc != RTEMS_SUCCESSFUL) {
- /* FIXME */
- rtems_fatal_error_occurred(0xdeadbeef);
- }
+ #ifdef RTEMS_DEBUG
+ if (sc != RTEMS_SUCCESSFUL) {
+ rtems_fatal_error_occurred(0xdeadbeef);
+ }
+ #endif
}
/*
@@ -248,15 +249,15 @@ int pipe_release(
pipe_control_t *pipe = *pipep;
uint32_t mode;
- if (pipe_lock())
+ #if defined(RTEMS_DEBUG)
/* WARN pipe not freed and pipep not set to NULL! */
- /* FIXME */
- rtems_fatal_error_occurred(0xdeadbeef);
+ if (pipe_lock())
+ rtems_fatal_error_occurred(0xdeadbeef);
- if (!PIPE_LOCK(pipe))
/* WARN pipe not released! */
- /* FIXME */
- rtems_fatal_error_occurred(0xdeadbeef);
+ if (!PIPE_LOCK(pipe))
+ rtems_fatal_error_occurred(0xdeadbeef);
+ #endif
mode = LIBIO_ACCMODE(iop);
if (mode & LIBIO_FLAGS_READ)