Removed asserts that shouldn't be called and commented case where this

indicates an internal error.
This commit is contained in:
Jennifer Averett
1999-03-31 23:24:57 +00:00
parent 8cc57f626b
commit ec2328eeaf
11 changed files with 8 additions and 15 deletions

View File

@@ -22,7 +22,6 @@
#include <unistd.h>
#include <errno.h>
#include <stdlib.h>
#include <assert.h>
#include "libio_.h"

View File

@@ -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 );

View File

@@ -20,7 +20,6 @@
#include <unistd.h>
#include <errno.h>
#include <stdlib.h>
#include <assert.h>
#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 );
}

View File

@@ -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 );

View File

@@ -20,7 +20,6 @@
#include <unistd.h>
#include <errno.h>
#include <stdlib.h>
#include <assert.h>
#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 );
}

View File

@@ -22,7 +22,6 @@
#include <unistd.h>
#include <errno.h>
#include <stdlib.h>
#include <assert.h>
#include "libio_.h"

View File

@@ -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 );

View File

@@ -20,7 +20,6 @@
#include <unistd.h>
#include <errno.h>
#include <stdlib.h>
#include <assert.h>
#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 );
}

View File

@@ -22,7 +22,6 @@
#include <unistd.h>
#include <errno.h>
#include <stdlib.h>
#include <assert.h>
#include "libio_.h"

View File

@@ -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 );

View File

@@ -20,7 +20,6 @@
#include <unistd.h>
#include <errno.h>
#include <stdlib.h>
#include <assert.h>
#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 );
}