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>2013-07-09 17:07:16 +0400
committerCorinna Vinschen <corinna@vinschen.de>2013-07-09 17:07:16 +0400
commit5dad9defd0a1967488333fff213ab374d99bb9fa (patch)
tree6bce37b0707138a5b73cb219ed36fa4a8484c1a1 /newlib/libc
parent10c64dd4da1e74454342b39b8b48a9ea09ce2786 (diff)
* libc/stdio/fwalk.c (_fwalk): Remove redundant test.
Diffstat (limited to 'newlib/libc')
-rw-r--r--newlib/libc/stdio/fwalk.c7
1 files changed, 2 insertions, 5 deletions
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;
}