summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/getdents.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2010-07-01 17:47:48 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2010-07-01 17:47:48 +0000
commit0d923d9705d89c78190dea017ccbab37e5724fce (patch)
tree7d9ab0ba1956687d50cf1a4050ae2f8e35bc1d30 /cpukit/libcsupport/src/getdents.c
parent2010-07-01 Bharath Suri <bharath.s.jois@gmail.com> (diff)
downloadrtems-0d923d9705d89c78190dea017ccbab37e5724fce.tar.bz2
2010-07-01 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/src/_rename_r.c, libcsupport/src/getdents.c, libcsupport/src/unlink.c, libcsupport/src/utime.c, libcsupport/src/writev.c: Remove remaining checks for missing handlers.
Diffstat (limited to 'cpukit/libcsupport/src/getdents.c')
-rw-r--r--cpukit/libcsupport/src/getdents.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/cpukit/libcsupport/src/getdents.c b/cpukit/libcsupport/src/getdents.c
index ca4c36727f..6b5dbfe76c 100644
--- a/cpukit/libcsupport/src/getdents.c
+++ b/cpukit/libcsupport/src/getdents.c
@@ -38,16 +38,12 @@ int getdents(
/*
* Get the file control block structure associated with the file descriptor
*/
-
iop = rtems_libio_iop( dd_fd );
/*
* Make sure we are working on a directory
*/
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( ENOTDIR );
@@ -55,9 +51,5 @@ int getdents(
* Return the number of bytes that were actually transfered as a result
* of the read attempt.
*/
-
- if ( !iop->handlers->read_h )
- rtems_set_errno_and_return_minus_one( ENOTSUP );
-
return (*iop->handlers->read_h)( iop, dd_buf, dd_len );
}