summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/read.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2010-08-23 23:19:31 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2010-08-23 23:19:31 +0000
commit0b4222f7cce54272991b5ca70b443f2d0c9f580a (patch)
tree1669d53a792cb4925a709400311b737aea06519e /cpukit/libcsupport/src/read.c
parent2010-08-23 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-0b4222f7cce54272991b5ca70b443f2d0c9f580a.tar.bz2
2010-08-23 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/src/read.c, libcsupport/src/write.c: Remove redundant check for 0 size request.
Diffstat (limited to 'cpukit/libcsupport/src/read.c')
-rw-r--r--cpukit/libcsupport/src/read.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/cpukit/libcsupport/src/read.c b/cpukit/libcsupport/src/read.c
index d3398ebee6..f4c3bdc322 100644
--- a/cpukit/libcsupport/src/read.c
+++ b/cpukit/libcsupport/src/read.c
@@ -1,7 +1,7 @@
/*
* read() - POSIX 1003.1b 6.4.1 - Read From a File
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2010.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -34,9 +34,6 @@ ssize_t read(
rtems_libio_check_count( count );
rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ );
- if ( count == 0 )
- return 0;
-
/*
* Now process the read().
*/