diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2014-09-05 09:31:32 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2014-09-05 09:31:32 +0000 |
commit | 1ec7de72712ad91fa5cf486db50938f8657a0c92 (patch) | |
tree | 345b0a4701488e2d8ae212089417d9fa0465d4b6 /newlib/libc/stdio/fwalk.c | |
parent | a015d9b507402823bc80e1dd452be692d672a9c7 (diff) | |
download | cygnal-1ec7de72712ad91fa5cf486db50938f8657a0c92.tar.gz cygnal-1ec7de72712ad91fa5cf486db50938f8657a0c92.tar.bz2 cygnal-1ec7de72712ad91fa5cf486db50938f8657a0c92.zip |
* libc/stdio/fwalk.c (_fwalk_reent): 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 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; } |