From ec2328eeaf7de6afe46266ee36e8f8b62af39d6c Mon Sep 17 00:00:00 2001 From: Jennifer Averett Date: Wed, 31 Mar 1999 23:24:57 +0000 Subject: Removed asserts that shouldn't be called and commented case where this indicates an internal error. --- c/src/exec/libcsupport/src/mknod.c | 1 - c/src/exec/libfs/src/imfs/imfs_getchild.c | 3 ++- c/src/exec/libfs/src/imfs/imfs_mknod.c | 2 -- 3 files changed, 2 insertions(+), 4 deletions(-) (limited to 'c/src/exec') diff --git a/c/src/exec/libcsupport/src/mknod.c b/c/src/exec/libcsupport/src/mknod.c index 4f83321ecd..97f6cb0884 100644 --- a/c/src/exec/libcsupport/src/mknod.c +++ b/c/src/exec/libcsupport/src/mknod.c @@ -22,7 +22,6 @@ #include #include #include -#include #include "libio_.h" diff --git a/c/src/exec/libfs/src/imfs/imfs_getchild.c b/c/src/exec/libfs/src/imfs/imfs_getchild.c index 3f37738ab4..3bb710f169 100644 --- a/c/src/exec/libfs/src/imfs/imfs_getchild.c +++ b/c/src/exec/libfs/src/imfs/imfs_getchild.c @@ -31,7 +31,8 @@ IMFS_jnode_t *IMFS_find_match_in_dir( IMFS_jnode_t *the_jnode; /* - * Check for fatal errors + * Check for fatal errors. A NULL directory show a problem in the + * the IMFS code. */ assert( directory ); diff --git a/c/src/exec/libfs/src/imfs/imfs_mknod.c b/c/src/exec/libfs/src/imfs/imfs_mknod.c index c8c05b3a26..947fe260c1 100644 --- a/c/src/exec/libfs/src/imfs/imfs_mknod.c +++ b/c/src/exec/libfs/src/imfs/imfs_mknod.c @@ -20,7 +20,6 @@ #include #include #include -#include #include "imfs.h" #include "libio_.h" @@ -52,7 +51,6 @@ int IMFS_mknod( type = IMFS_DEVICE; rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor ); } else { - assert( 0 ); set_errno_and_return_minus_one( EINVAL ); } -- cgit v1.2.3