From 92119ed344c18f95b8b585e12874c8629c221e4a Mon Sep 17 00:00:00 2001 From: Jennifer Averett Date: Thu, 1 Jul 2010 15:12:38 +0000 Subject: 2010-07-01 Jennifer Averett * 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. --- cpukit/libcsupport/src/chmod.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'cpukit/libcsupport/src/chmod.c') 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 ); -- cgit v1.2.3