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
path: root/newlib
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2013-07-09 17:07:16 +0400
committerCorinna Vinschen <corinna@vinschen.de>2013-07-09 17:07:16 +0400
commit5dad9defd0a1967488333fff213ab374d99bb9fa (patch)
tree6bce37b0707138a5b73cb219ed36fa4a8484c1a1 /newlib
parent10c64dd4da1e74454342b39b8b48a9ea09ce2786 (diff)
* libc/stdio/fwalk.c (_fwalk): Remove redundant test.
Diffstat (limited to 'newlib')
-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 420a15ae4..fc5619bd4 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,3 +1,7 @@
+2013-07-09 Bin Cheng <bin.cheng@arm.com>
+
+ * libc/stdio/fwalk.c (_fwalk): Remove redundant test.
+
2013-07-05 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
* libc/include/sys/types.h (u_char): Add redefinition guard.
diff --git a/newlib/libc/stdio/fwalk.c b/newlib/libc/stdio/fwalk.c
index df92d1d81..975e4b001 100644
--- a/newlib/libc/stdio/fwalk.c
+++ b/newlib/libc/stdio/fwalk.c
@@ -46,11 +46,8 @@ _DEFUN(_fwalk, (ptr, 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 |= (*function) (fp);
- }
+ if (fp->_flags != 0 && fp->_flags != 1 && fp->_file != -1)
+ ret |= (*function) (fp);
return ret;
}