Changeset 8851c0a in rtems for cpukit/libfs/src/pipe/fifo.c


Ignore:
Timestamp:
Aug 2, 2010, 6:27:23 PM (9 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
8682da39
Parents:
5114d3f
Message:

2010-08-02 Joel Sherrill <joel.sherrill@…>

  • 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.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libfs/src/pipe/fifo.c

    r5114d3f r8851c0a  
    191191
    192192  sc = rtems_semaphore_release(pipe_semaphore);
    193   if (sc != RTEMS_SUCCESSFUL) {
    194     /* FIXME */
    195     rtems_fatal_error_occurred(0xdeadbeef);
    196   }
     193  #ifdef RTEMS_DEBUG
     194    if (sc != RTEMS_SUCCESSFUL) {
     195      rtems_fatal_error_occurred(0xdeadbeef);
     196    }
     197  #endif
    197198}
    198199
     
    249250  uint32_t mode;
    250251
    251   if (pipe_lock())
     252  #if defined(RTEMS_DEBUG)
    252253    /* WARN pipe not freed and pipep not set to NULL! */
    253     /* FIXME */
    254     rtems_fatal_error_occurred(0xdeadbeef);
    255 
    256   if (!PIPE_LOCK(pipe))
     254    if (pipe_lock())
     255      rtems_fatal_error_occurred(0xdeadbeef);
     256
    257257    /* WARN pipe not released! */
    258     /* FIXME */
    259     rtems_fatal_error_occurred(0xdeadbeef);
     258    if (!PIPE_LOCK(pipe))
     259      rtems_fatal_error_occurred(0xdeadbeef);
     260  #endif
    260261
    261262  mode = LIBIO_ACCMODE(iop);
Note: See TracChangeset for help on using the changeset viewer.