* libc/stdio/fwalk.c (_fwalk): Remove redundant test.

This commit is contained in:
Corinna Vinschen 2013-07-09 13:07:16 +00:00
parent 10c64dd4da
commit 5dad9defd0
2 changed files with 6 additions and 5 deletions

View File

@ -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.

View File

@ -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;
}