diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2013-07-09 13:07:16 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2013-07-09 13:07:16 +0000 |
commit | 5dad9defd0a1967488333fff213ab374d99bb9fa (patch) | |
tree | 6bce37b0707138a5b73cb219ed36fa4a8484c1a1 /newlib/libc/stdio/fwalk.c | |
parent | 10c64dd4da1e74454342b39b8b48a9ea09ce2786 (diff) | |
download | newlib-5dad9defd0a1967488333fff213ab374d99bb9fa.zip newlib-5dad9defd0a1967488333fff213ab374d99bb9fa.tar.gz newlib-5dad9defd0a1967488333fff213ab374d99bb9fa.tar.bz2 |
* libc/stdio/fwalk.c (_fwalk): Remove redundant test.
Diffstat (limited to 'newlib/libc/stdio/fwalk.c')
-rw-r--r-- | newlib/libc/stdio/fwalk.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/newlib/libc/stdio/fwalk.c b/newlib/libc/stdio/fwalk.c index df92d1d..975e4b0 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; } |