diff options
author | Jennifer Averett <Jennifer.Averett@OARcorp.com> | 2010-07-01 15:12:38 +0000 |
---|---|---|
committer | Jennifer Averett <Jennifer.Averett@OARcorp.com> | 2010-07-01 15:12:38 +0000 |
commit | 92119ed344c18f95b8b585e12874c8629c221e4a (patch) | |
tree | ec0137216c214e1f879041a6717253d83ebd2e0b /cpukit/libcsupport | |
parent | 2010-07-01 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-92119ed344c18f95b8b585e12874c8629c221e4a.tar.bz2 |
2010-07-01 Jennifer Averett <Jennifer.Averett@OARcorp.com>
* libcsupport/src/chdir.c, libcsupport/src/chmod.c,
libcsupport/src/chown.c, libcsupport/src/close.c,
libcsupport/src/eval.c, libcsupport/src/fchdir.c,
libcsupport/src/fchmod.c, libcsupport/src/fchown.c,
libcsupport/src/fcntl.c, libcsupport/src/fdatasync.c,
libcsupport/src/freenode.c, libcsupport/src/fstat.c,
libcsupport/src/fsync.c, libcsupport/src/ftruncate.c,
libcsupport/src/ioctl.c, libcsupport/src/link.c,
libcsupport/src/lseek.c, libcsupport/src/mknod.c,
libcsupport/src/mount.c, libcsupport/src/open.c,
libcsupport/src/read.c, libcsupport/src/readlink.c,
libcsupport/src/readv.c, libcsupport/src/rmdir.c,
libcsupport/src/stat.c, libcsupport/src/statvfs.c,
libcsupport/src/symlink.c, libcsupport/src/unlink.c,
libcsupport/src/unmount.c, libcsupport/src/write.c: Removed
filesystem checks for NULL methods checks from the main posix
rountines. These are now required to have at a miminum default
routines in the tables.
Diffstat (limited to '')
30 files changed, 7 insertions, 204 deletions
diff --git a/cpukit/libcsupport/src/chdir.c b/cpukit/libcsupport/src/chdir.c index fe8796cb35..c9d05f0bef 100644 --- a/cpukit/libcsupport/src/chdir.c +++ b/cpukit/libcsupport/src/chdir.c @@ -44,11 +44,6 @@ int chdir( /* * Verify you can change directory into this node. */ - if ( !loc.ops->node_type_h ) { - rtems_filesystem_freenode( &loc ); - rtems_set_errno_and_return_minus_one( ENOTSUP ); - } - if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTDIR ); diff --git a/cpukit/libcsupport/src/chmod.c b/cpukit/libcsupport/src/chmod.c index 459314f736..d1d9ae0f5f 100644 --- a/cpukit/libcsupport/src/chmod.c +++ b/cpukit/libcsupport/src/chmod.c @@ -38,16 +38,6 @@ int chmod( if ( status != 0 ) return -1; - if ( !loc.handlers ){ - rtems_filesystem_freenode( &loc ); - rtems_set_errno_and_return_minus_one( EBADF ); - } - - if ( !loc.handlers->fchmod_h ){ - rtems_filesystem_freenode( &loc ); - rtems_set_errno_and_return_minus_one( ENOTSUP ); - } - result = (*loc.handlers->fchmod_h)( &loc, mode ); rtems_filesystem_freenode( &loc ); diff --git a/cpukit/libcsupport/src/chown.c b/cpukit/libcsupport/src/chown.c index 22d2a77127..157c59e997 100644 --- a/cpukit/libcsupport/src/chown.c +++ b/cpukit/libcsupport/src/chown.c @@ -36,11 +36,6 @@ int chown( if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x00, &loc, true ) ) return -1; - if ( !loc.ops->chown_h ) { - rtems_filesystem_freenode( &loc ); - rtems_set_errno_and_return_minus_one( ENOTSUP ); - } - result = (*loc.ops->chown_h)( &loc, owner, group ); rtems_filesystem_freenode( &loc ); diff --git a/cpukit/libcsupport/src/close.c b/cpukit/libcsupport/src/close.c index b1ee7ef223..d14c4e18f5 100644 --- a/cpukit/libcsupport/src/close.c +++ b/cpukit/libcsupport/src/close.c @@ -29,8 +29,7 @@ int close( rtems_libio_check_is_open(iop); rc = RTEMS_SUCCESSFUL; - if ( iop->handlers->close_h ) - rc = (*iop->handlers->close_h)( iop ); + rc = (*iop->handlers->close_h)( iop ); rtems_filesystem_freenode( &iop->pathinfo ); rtems_libio_free( iop ); diff --git a/cpukit/libcsupport/src/eval.c b/cpukit/libcsupport/src/eval.c index da7acc45de..9ef8c735a5 100644 --- a/cpukit/libcsupport/src/eval.c +++ b/cpukit/libcsupport/src/eval.c @@ -42,9 +42,6 @@ int rtems_filesystem_evaluate_relative_path( if ( !pathloc ) rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */ - if ( !pathloc->ops->evalpath_h ) - rtems_set_errno_and_return_minus_one( ENOTSUP ); - result = (*pathloc->ops->evalpath_h)( pathname, pathnamelen, flags, pathloc ); /* @@ -54,21 +51,11 @@ int rtems_filesystem_evaluate_relative_path( if ( (result == 0) && follow_link ) { - if ( !pathloc->ops->node_type_h ){ - rtems_filesystem_freenode( pathloc ); - rtems_set_errno_and_return_minus_one( ENOTSUP ); - } - type = (*pathloc->ops->node_type_h)( pathloc ); if ( ( type == RTEMS_FILESYSTEM_HARD_LINK ) || ( type == RTEMS_FILESYSTEM_SYM_LINK ) ) { - if ( !pathloc->ops->eval_link_h ){ - rtems_filesystem_freenode( pathloc ); - rtems_set_errno_and_return_minus_one( ENOTSUP ); - } - /* what to do with the valid node pathloc points to * if eval_link_h fails? * Let the FS implementation deal with this case. It diff --git a/cpukit/libcsupport/src/fchdir.c b/cpukit/libcsupport/src/fchdir.c index 6ff2ca12ee..3c53d653e3 100644 --- a/cpukit/libcsupport/src/fchdir.c +++ b/cpukit/libcsupport/src/fchdir.c @@ -45,14 +45,6 @@ int fchdir( * Verify you can change directory into this node. */ - if ( !iop->pathinfo.ops ) { - rtems_set_errno_and_return_minus_one( ENOTSUP ); - } - - if ( !iop->pathinfo.ops->node_type_h ) { - rtems_set_errno_and_return_minus_one( ENOTSUP ); - } - if ( (*iop->pathinfo.ops->node_type_h)( &iop->pathinfo ) != RTEMS_FILESYSTEM_DIRECTORY ) { rtems_set_errno_and_return_minus_one( ENOTDIR ); diff --git a/cpukit/libcsupport/src/fchmod.c b/cpukit/libcsupport/src/fchmod.c index 11d9c0e723..867f40f1f8 100644 --- a/cpukit/libcsupport/src/fchmod.c +++ b/cpukit/libcsupport/src/fchmod.c @@ -41,8 +41,5 @@ int fchmod( rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); - if ( !iop->handlers->fchmod_h ) - rtems_set_errno_and_return_minus_one( ENOTSUP ); - return (*iop->pathinfo.handlers->fchmod_h)( &iop->pathinfo, mode ); } diff --git a/cpukit/libcsupport/src/fchown.c b/cpukit/libcsupport/src/fchown.c index b066037717..13bb2b9da0 100644 --- a/cpukit/libcsupport/src/fchown.c +++ b/cpukit/libcsupport/src/fchown.c @@ -38,8 +38,5 @@ int fchown( rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); - if ( !iop->pathinfo.ops->chown_h ) - rtems_set_errno_and_return_minus_one( ENOTSUP ); - return (*iop->pathinfo.ops->chown_h)( &iop->pathinfo, owner, group ); } diff --git a/cpukit/libcsupport/src/fcntl.c b/cpukit/libcsupport/src/fcntl.c index ed99f3dd45..ad4fef7bbe 100644 --- a/cpukit/libcsupport/src/fcntl.c +++ b/cpukit/libcsupport/src/fcntl.c @@ -140,12 +140,10 @@ static int vfcntl( */ if (ret >= 0) { - if (iop->handlers->fcntl_h) { - int err = (*iop->handlers->fcntl_h)( cmd, iop ); - if (err) { - errno = err; - ret = -1; - } + int err = (*iop->handlers->fcntl_h)( cmd, iop ); + if (err) { + errno = err; + ret = -1; } } return ret; diff --git a/cpukit/libcsupport/src/fdatasync.c b/cpukit/libcsupport/src/fdatasync.c index c2b4db43ae..504f7a9de4 100644 --- a/cpukit/libcsupport/src/fdatasync.c +++ b/cpukit/libcsupport/src/fdatasync.c @@ -35,8 +35,5 @@ int fdatasync( * Now process the fdatasync(). */ - if ( !iop->handlers->fdatasync_h ) - rtems_set_errno_and_return_minus_one( ENOTSUP ); - return (*iop->handlers->fdatasync_h)( iop ); } diff --git a/cpukit/libcsupport/src/freenode.c b/cpukit/libcsupport/src/freenode.c index c99db96271..21a9c1de91 100644 --- a/cpukit/libcsupport/src/freenode.c +++ b/cpukit/libcsupport/src/freenode.c @@ -16,7 +16,5 @@ void rtems_filesystem_freenode( rtems_filesystem_location_info_t *_node ) { - if ( _node->ops ) - if ( _node->ops->freenod_h ) - _node->ops->freenod_h(_node ); + _node->ops->freenod_h(_node ); } diff --git a/cpukit/libcsupport/src/fstat.c b/cpukit/libcsupport/src/fstat.c index 86cb4a882d..45eb450947 100644 --- a/cpukit/libcsupport/src/fstat.c +++ b/cpukit/libcsupport/src/fstat.c @@ -44,12 +44,6 @@ int fstat( rtems_libio_check_fd( fd ); rtems_libio_check_is_open(iop); - if ( !iop->handlers ) - rtems_set_errno_and_return_minus_one( EBADF ); - - if ( !iop->handlers->fstat_h ) - rtems_set_errno_and_return_minus_one( ENOTSUP ); - /* * Zero out the stat structure so the various support * versions of stat don't have to. diff --git a/cpukit/libcsupport/src/fsync.c b/cpukit/libcsupport/src/fsync.c index cfd8e8d49b..d8ecb88f3b 100644 --- a/cpukit/libcsupport/src/fsync.c +++ b/cpukit/libcsupport/src/fsync.c @@ -35,11 +35,5 @@ int fsync( * Now process the fsync(). */ - if ( !iop->handlers ) - rtems_set_errno_and_return_minus_one( EBADF ); - - if ( !iop->handlers->fsync_h ) - rtems_set_errno_and_return_minus_one( ENOTSUP ); - return (*iop->handlers->fsync_h)( iop ); } diff --git a/cpukit/libcsupport/src/ftruncate.c b/cpukit/libcsupport/src/ftruncate.c index 6619ca5f74..e23db2c724 100644 --- a/cpukit/libcsupport/src/ftruncate.c +++ b/cpukit/libcsupport/src/ftruncate.c @@ -42,16 +42,10 @@ int ftruncate( */ loc = iop->pathinfo; - if ( !loc.ops->node_type_h ) - rtems_set_errno_and_return_minus_one( ENOTSUP ); - if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) rtems_set_errno_and_return_minus_one( EISDIR ); rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); - if ( !iop->handlers->ftruncate_h ) - rtems_set_errno_and_return_minus_one( ENOTSUP ); - return (*iop->handlers->ftruncate_h)( iop, length ); } diff --git a/cpukit/libcsupport/src/ioctl.c b/cpukit/libcsupport/src/ioctl.c index 029314babc..95cdaf8881 100644 --- a/cpukit/libcsupport/src/ioctl.c +++ b/cpukit/libcsupport/src/ioctl.c @@ -47,13 +47,6 @@ int ioctl( /* * Now process the ioctl(). */ - - if ( !iop->handlers ) - rtems_set_errno_and_return_minus_one( EBADF ); - - if ( !iop->handlers->ioctl_h ) - rtems_set_errno_and_return_minus_one( ENOTSUP ); - rc = (*iop->handlers->ioctl_h)( iop, command, buffer ); return rc; diff --git a/cpukit/libcsupport/src/link.c b/cpukit/libcsupport/src/link.c index 507b7bf1da..2b57a61815 100644 --- a/cpukit/libcsupport/src/link.c +++ b/cpukit/libcsupport/src/link.c @@ -48,11 +48,6 @@ int link( rtems_filesystem_get_start_loc( new, &i, &parent_loc ); - if ( !parent_loc.ops->evalformake_h ) { - rtems_filesystem_freenode( &existing_loc ); - rtems_set_errno_and_return_minus_one( ENOTSUP ); - } - result = (*parent_loc.ops->evalformake_h)( &new[i], &parent_loc, &name_start ); if ( result != 0 ) { rtems_filesystem_freenode( &existing_loc ); @@ -70,12 +65,6 @@ int link( rtems_set_errno_and_return_minus_one( EXDEV ); } - if ( !parent_loc.ops->link_h ) { - rtems_filesystem_freenode( &existing_loc ); - rtems_filesystem_freenode( &parent_loc ); - rtems_set_errno_and_return_minus_one( ENOTSUP ); - } - result = (*parent_loc.ops->link_h)( &existing_loc, &parent_loc, name_start ); rtems_filesystem_freenode( &existing_loc ); diff --git a/cpukit/libcsupport/src/lseek.c b/cpukit/libcsupport/src/lseek.c index b2d7af606f..840ec3c9d4 100644 --- a/cpukit/libcsupport/src/lseek.c +++ b/cpukit/libcsupport/src/lseek.c @@ -35,13 +35,6 @@ off_t lseek( rtems_libio_check_is_open(iop); /* - * Check as many errors as possible before touching iop->offset. - */ - - if ( !iop->handlers->lseek_h ) - rtems_set_errno_and_return_minus_one( ENOTSUP ); - - /* * Now process the lseek(). */ diff --git a/cpukit/libcsupport/src/mknod.c b/cpukit/libcsupport/src/mknod.c index 2d1db0fc3d..f4673b3275 100644 --- a/cpukit/libcsupport/src/mknod.c +++ b/cpukit/libcsupport/src/mknod.c @@ -45,10 +45,6 @@ int mknod( rtems_filesystem_get_start_loc( pathname, &i, &temp_loc ); - if ( !temp_loc.ops->evalformake_h ) { - rtems_set_errno_and_return_minus_one( ENOTSUP ); - } - result = (*temp_loc.ops->evalformake_h)( &pathname[i], &temp_loc, @@ -57,11 +53,6 @@ int mknod( if ( result != 0 ) return -1; - if ( !temp_loc.ops->mknod_h ) { - rtems_filesystem_freenode( &temp_loc ); - rtems_set_errno_and_return_minus_one( ENOTSUP ); - } - result = (*temp_loc.ops->mknod_h)( name_start, mode, dev, &temp_loc ); rtems_filesystem_freenode( &temp_loc ); diff --git a/cpukit/libcsupport/src/mount.c b/cpukit/libcsupport/src/mount.c index 979382e8a2..29c14077e8 100644 --- a/cpukit/libcsupport/src/mount.c +++ b/cpukit/libcsupport/src/mount.c @@ -176,15 +176,6 @@ int mount( loc_to_free = &loc; /* - * Test for node_type_h - */ - - if (!loc.ops->node_type_h) { - errno = ENOTSUP; - goto cleanup_and_bail; - } - - /* * Test to see if it is a directory */ @@ -220,11 +211,6 @@ int mount( * below the base file system */ - if ( !loc.ops->mount_h ){ - errno = ENOTSUP; - goto cleanup_and_bail; - } - if ( loc.ops->mount_h( mt_entry ) ) { goto cleanup_and_bail; } @@ -248,9 +234,7 @@ int mount( /* * Try to undo the mount operation */ - if ( loc.ops->unmount_h ) { - loc.ops->unmount_h( mt_entry ); - } + loc.ops->unmount_h( mt_entry ); goto cleanup_and_bail; } diff --git a/cpukit/libcsupport/src/open.c b/cpukit/libcsupport/src/open.c index 25a6f4e239..ef0bec53af 100644 --- a/cpukit/libcsupport/src/open.c +++ b/cpukit/libcsupport/src/open.c @@ -158,11 +158,6 @@ int open( iop->flags |= rtems_libio_fcntl_flags( flags ); iop->pathinfo = loc; - if ( !iop->handlers || !iop->handlers->open_h ) { - rc = ENOTSUP; - goto done; - } - rc = (*iop->handlers->open_h)( iop, pathname, flags, mode ); if ( rc ) { rc = errno; diff --git a/cpukit/libcsupport/src/read.c b/cpukit/libcsupport/src/read.c index 34d07085b6..77ba4b1314 100644 --- a/cpukit/libcsupport/src/read.c +++ b/cpukit/libcsupport/src/read.c @@ -40,9 +40,6 @@ ssize_t read( /* * Now process the read(). */ - if ( !iop->handlers->read_h ) - rtems_set_errno_and_return_minus_one( ENOTSUP ); - rc = (*iop->handlers->read_h)( iop, buffer, count ); if ( rc > 0 ) diff --git a/cpukit/libcsupport/src/readlink.c b/cpukit/libcsupport/src/readlink.c index 9252871208..1880ed667e 100644 --- a/cpukit/libcsupport/src/readlink.c +++ b/cpukit/libcsupport/src/readlink.c @@ -35,21 +35,11 @@ ssize_t readlink( if ( result != 0 ) return -1; - if ( !loc.ops->node_type_h ){ - rtems_filesystem_freenode( &loc ); - rtems_set_errno_and_return_minus_one( ENOTSUP ); - } - if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_SYM_LINK ){ rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( EINVAL ); } - if ( !loc.ops->readlink_h ){ - rtems_filesystem_freenode( &loc ); - rtems_set_errno_and_return_minus_one( ENOTSUP ); - } - result = (*loc.ops->readlink_h)( &loc, buf, bufsize ); rtems_filesystem_freenode( &loc ); diff --git a/cpukit/libcsupport/src/readv.c b/cpukit/libcsupport/src/readv.c index cb64797d8d..184bc1f41b 100644 --- a/cpukit/libcsupport/src/readv.c +++ b/cpukit/libcsupport/src/readv.c @@ -54,9 +54,6 @@ ssize_t readv( if ( iovcnt > IOV_MAX ) rtems_set_errno_and_return_minus_one( EINVAL ); - if ( !iop->handlers->read_h ) - rtems_set_errno_and_return_minus_one( ENOTSUP ); - /* * OpenGroup says that you are supposed to return EINVAL if the * sum of the iov_len values in the iov array would overflow a diff --git a/cpukit/libcsupport/src/rmdir.c b/cpukit/libcsupport/src/rmdir.c index 671cb1a05a..cb599f26b0 100644 --- a/cpukit/libcsupport/src/rmdir.c +++ b/cpukit/libcsupport/src/rmdir.c @@ -74,14 +74,6 @@ int rmdir( /* * Verify you can remove this node as a directory. */ - - if ( !loc.ops->node_type_h ){ - rtems_filesystem_freenode( &loc ); - if ( free_parentloc ) - rtems_filesystem_freenode( &parentloc ); - rtems_set_errno_and_return_minus_one( ENOTSUP ); - } - if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ){ rtems_filesystem_freenode( &loc ); if ( free_parentloc ) @@ -93,13 +85,6 @@ int rmdir( * Use the filesystems rmnod to remove the node. */ - if ( !loc.handlers->rmnod_h ){ - rtems_filesystem_freenode( &loc ); - if ( free_parentloc ) - rtems_filesystem_freenode( &parentloc ); - rtems_set_errno_and_return_minus_one( ENOTSUP ); - } - result = (*loc.handlers->rmnod_h)( &parentloc, &loc ); rtems_filesystem_freenode( &loc ); diff --git a/cpukit/libcsupport/src/stat.c b/cpukit/libcsupport/src/stat.c index 8e2240a7ef..9f06deaa52 100644 --- a/cpukit/libcsupport/src/stat.c +++ b/cpukit/libcsupport/src/stat.c @@ -62,11 +62,6 @@ int _STAT_NAME( if ( status != 0 ) return -1; - if ( !loc.handlers->fstat_h ){ - rtems_filesystem_freenode( &loc ); - rtems_set_errno_and_return_minus_one( ENOTSUP ); - } - /* * Zero out the stat structure so the various support * versions of stat don't have to. diff --git a/cpukit/libcsupport/src/statvfs.c b/cpukit/libcsupport/src/statvfs.c index 24d6415c49..599aa7edc1 100644 --- a/cpukit/libcsupport/src/statvfs.c +++ b/cpukit/libcsupport/src/statvfs.c @@ -42,9 +42,6 @@ statvfs (const char *path, struct statvfs *sb) mt_entry = loc.mt_entry; fs_mount_root = &mt_entry->mt_fs_root; - if ( !fs_mount_root->ops->statvfs_h ) - rtems_set_errno_and_return_minus_one( ENOTSUP ); - memset (sb, 0, sizeof (struct statvfs)); result = ( fs_mount_root->ops->statvfs_h )( fs_mount_root, sb ); diff --git a/cpukit/libcsupport/src/symlink.c b/cpukit/libcsupport/src/symlink.c index 6904fff920..be29980911 100644 --- a/cpukit/libcsupport/src/symlink.c +++ b/cpukit/libcsupport/src/symlink.c @@ -30,19 +30,10 @@ int symlink( rtems_filesystem_get_start_loc( sympath, &i, &loc ); - if ( !loc.ops->evalformake_h ) { - rtems_set_errno_and_return_minus_one( ENOTSUP ); - } - result = (*loc.ops->evalformake_h)( &sympath[i], &loc, &name_start ); if ( result != 0 ) return -1; - if ( !loc.ops->symlink_h ) { - rtems_filesystem_freenode( &loc ); - rtems_set_errno_and_return_minus_one( ENOTSUP ); - } - result = (*loc.ops->symlink_h)( &loc, actualpath, name_start); rtems_filesystem_freenode( &loc ); diff --git a/cpukit/libcsupport/src/unlink.c b/cpukit/libcsupport/src/unlink.c index c5c707d3a8..caaf9606cc 100644 --- a/cpukit/libcsupport/src/unlink.c +++ b/cpukit/libcsupport/src/unlink.c @@ -67,13 +67,6 @@ int unlink( return -1; } - if ( !loc.ops->node_type_h ) { - rtems_filesystem_freenode( &loc ); - if ( free_parentloc ) - rtems_filesystem_freenode( &parentloc ); - rtems_set_errno_and_return_minus_one( ENOTSUP ); - } - if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) { rtems_filesystem_freenode( &loc ); if ( free_parentloc ) diff --git a/cpukit/libcsupport/src/unmount.c b/cpukit/libcsupport/src/unmount.c index 12c659dd6d..1ed5c7dabd 100644 --- a/cpukit/libcsupport/src/unmount.c +++ b/cpukit/libcsupport/src/unmount.c @@ -88,17 +88,6 @@ int unmount( rtems_filesystem_freenode( &loc ); /* - * Verify Unmount is supported by both filesystems. - */ - - if ( !fs_mount_loc->ops->unmount_h ) - rtems_set_errno_and_return_minus_one( ENOTSUP ); - - if ( !fs_root_loc->ops->fsunmount_me_h ) - rtems_set_errno_and_return_minus_one( ENOTSUP ); - - - /* * Verify the current node is not in this filesystem. * XXX - Joel I have a question here wasn't code added * that made the current node thread based instead diff --git a/cpukit/libcsupport/src/write.c b/cpukit/libcsupport/src/write.c index 0193466bd5..1a792f708d 100644 --- a/cpukit/libcsupport/src/write.c +++ b/cpukit/libcsupport/src/write.c @@ -47,9 +47,6 @@ ssize_t write( /* * Now process the write() request. */ - if ( !iop->handlers->write_h ) - rtems_set_errno_and_return_minus_one( ENOTSUP ); - rc = (*iop->handlers->write_h)( iop, buffer, count ); if ( rc > 0 ) |