diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-08-23 23:19:31 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-08-23 23:19:31 +0000 |
commit | 0b4222f7cce54272991b5ca70b443f2d0c9f580a (patch) | |
tree | 1669d53a792cb4925a709400311b737aea06519e | |
parent | 2010-08-23 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-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.
-rw-r--r-- | cpukit/ChangeLog | 5 | ||||
-rw-r--r-- | cpukit/libcsupport/src/read.c | 5 | ||||
-rw-r--r-- | cpukit/libcsupport/src/write.c | 5 |
3 files changed, 7 insertions, 8 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 38245020e2..6630d7b5a6 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,5 +1,10 @@ 2010-08-23 Joel Sherrill <joel.sherrill@oarcorp.com> + * libcsupport/src/read.c, libcsupport/src/write.c: Remove redundant + check for 0 size request. + +2010-08-23 Joel Sherrill <joel.sherrill@oarcorp.com> + * libcsupport/src/open.c: Spacing. 2010-08-23 Joel Sherrill <joel.sherrill@oarcorp.com> 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(). */ diff --git a/cpukit/libcsupport/src/write.c b/cpukit/libcsupport/src/write.c index fafb96a7a3..b723f426b6 100644 --- a/cpukit/libcsupport/src/write.c +++ b/cpukit/libcsupport/src/write.c @@ -1,7 +1,7 @@ /* * write() - POSIX 1003.1b 6.4.2 - Write to a File * - * COPYRIGHT (c) 1989-2007. + * COPYRIGHT (c) 1989-2010. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -41,9 +41,6 @@ ssize_t write( rtems_libio_check_count( count ); rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); - if ( count == 0 ) - return 0; - /* * Now process the write() request. */ |