Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2014-09-05 13:31:32 +0400
committerCorinna Vinschen <corinna@vinschen.de>2014-09-05 13:31:32 +0400
commit1ec7de72712ad91fa5cf486db50938f8657a0c92 (patch)
tree345b0a4701488e2d8ae212089417d9fa0465d4b6
parenta015d9b507402823bc80e1dd452be692d672a9c7 (diff)
* libc/stdio/fwalk.c (_fwalk_reent): Remove redundant test.
-rw-r--r--newlib/ChangeLog4
-rw-r--r--newlib/libc/stdio/fwalk.c7
2 files changed, 6 insertions, 5 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index d7c909517..8f718214c 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,3 +1,7 @@
+2014-09-05 Bin Cheng <bin.cheng@arm.com>
+
+ * libc/stdio/fwalk.c (_fwalk_reent): Remove redundant test.
+
2014-09-04 Freddie Chopin <freddie_chopin@op.pl>
* libc/time/mktm_r.c (_mktm_r): Optimize speed.
diff --git a/newlib/libc/stdio/fwalk.c b/newlib/libc/stdio/fwalk.c
index 975e4b001..cceaa96c2 100644
--- a/newlib/libc/stdio/fwalk.c
+++ b/newlib/libc/stdio/fwalk.c
@@ -73,11 +73,8 @@ _DEFUN(_fwalk_reent, (ptr, reent_function),
*/
for (g = &ptr->__sglue; g != NULL; g = g->_next)
for (fp = g->_iobs, n = g->_niobs; --n >= 0; fp++)
- if (fp->_flags != 0)
- {
- if (fp->_flags != 0 && fp->_flags != 1 && fp->_file != -1)
- ret |= (*reent_function) (ptr, fp);
- }
+ if (fp->_flags != 0 && fp->_flags != 1 && fp->_file != -1)
+ ret |= (*reent_function) (ptr, fp);
return ret;
}