* libc/stdio/fwalk.c (_fwalk_reent): Remove redundant test.
This commit is contained in:
parent
a015d9b507
commit
1ec7de7271
|
@ -1,3 +1,7 @@
|
|||
2014-09-05 Bin Cheng <bin.cheng@arm.com>
|
||||
|
||||
* libc/stdio/fwalk.c (_fwalk_reent): Remove redundant test.
|
||||
|
||||
2014-09-04 Freddie Chopin <freddie_chopin@op.pl>
|
||||
|
||||
* libc/time/mktm_r.c (_mktm_r): Optimize speed.
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue