diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2011-10-18 09:35:17 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2011-10-18 09:35:17 +0000 |
commit | 49755cfd68977de1179f71b5c7ad0f8d94613a6c (patch) | |
tree | 90033f950e872bd184049a596c14a0ecf344457c /cpukit | |
parent | 2011-10-18 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-49755cfd68977de1179f71b5c7ad0f8d94613a6c.tar.bz2 |
2011-10-18 Ralf Corsépius <ralf.corsepius@rtems.org>
* libfs/src/pipe/fifo.c: Conditionally use var "sc".
Diffstat (limited to 'cpukit')
-rw-r--r-- | cpukit/ChangeLog | 1 | ||||
-rw-r--r-- | cpukit/libfs/src/pipe/fifo.c | 5 |
2 files changed, 5 insertions, 1 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index b65641ec51..9c3006a9dd 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,5 +1,6 @@ 2011-10-18 Ralf Corsépius <ralf.corsepius@rtems.org> + * libfs/src/pipe/fifo.c: Conditionally use var "sc". * libmisc/shell/fts.c: Conditionally use var "nostat". * pppd/options.c: Remove unused var "ok". * libnetworking/rtems/rtems_dhcp.c: Remove unused var diff --git a/cpukit/libfs/src/pipe/fifo.c b/cpukit/libfs/src/pipe/fifo.c index f7c4e96277..d80a51f8cc 100644 --- a/cpukit/libfs/src/pipe/fifo.c +++ b/cpukit/libfs/src/pipe/fifo.c @@ -187,9 +187,12 @@ static int pipe_lock(void) static void pipe_unlock(void) { +#ifdef RTEMS_DEBUG rtems_status_code sc = RTEMS_SUCCESSFUL; - sc = rtems_semaphore_release(pipe_semaphore); + sc = +#endif + rtems_semaphore_release(pipe_semaphore); #ifdef RTEMS_DEBUG if (sc != RTEMS_SUCCESSFUL) { rtems_fatal_error_occurred(0xdeadbeef); |