diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-07-30 22:36:32 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-07-30 22:36:32 +0000 |
commit | 0aea082fe07cad72dd8120d307c22bf015378a79 (patch) | |
tree | d261f225130072dbd0ea32e3d1efbf983665f764 /cpukit/libfs/src/imfs/imfs_getchild.c | |
parent | 2010-07-30 Gedare Bloom <giddyup44@yahoo.com> (diff) | |
download | rtems-0aea082fe07cad72dd8120d307c22bf015378a79.tar.bz2 |
2010-07-30 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/src/fstat.c, libcsupport/src/rmdir.c,
libfs/src/imfs/imfs.h, libfs/src/imfs/imfs_creat.c,
libfs/src/imfs/imfs_debug.c, libfs/src/imfs/imfs_getchild.c,
libfs/src/imfs/memfile.c: Add IMFS_assert. Clean up and remove all
checks which are redundant with system call layer. Formatting.
Diffstat (limited to 'cpukit/libfs/src/imfs/imfs_getchild.c')
-rw-r--r-- | cpukit/libfs/src/imfs/imfs_getchild.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/cpukit/libfs/src/imfs/imfs_getchild.c b/cpukit/libfs/src/imfs/imfs_getchild.c index dc66e55102..dfec017643 100644 --- a/cpukit/libfs/src/imfs/imfs_getchild.c +++ b/cpukit/libfs/src/imfs/imfs_getchild.c @@ -17,9 +17,6 @@ #include "config.h" #endif -#if defined(RTEMS_DEBUG) - #include <assert.h> -#endif #include <errno.h> #include <string.h> #include "imfs.h" @@ -40,16 +37,8 @@ IMFS_jnode_t *IMFS_find_match_in_dir( * Check for fatal errors. A NULL directory show a problem in the * the IMFS code. */ - - #if defined(RTEMS_DEBUG) - assert( directory ); - assert( name ); - #endif - if ( !name ) - return 0; - - if ( !directory ) - return 0; + IMFS_assert( directory ); + IMFS_assert( name ); /* * Check for "." and ".." |