summaryrefslogtreecommitdiffstats
path: root/cpukit/libfs/src/imfs/imfs_getchild.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/libfs/src/imfs/imfs_getchild.c')
-rw-r--r--cpukit/libfs/src/imfs/imfs_getchild.c15
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 ".."