From 1ec7de72712ad91fa5cf486db50938f8657a0c92 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Fri, 5 Sep 2014 09:31:32 +0000 Subject: * libc/stdio/fwalk.c (_fwalk_reent): Remove redundant test. --- newlib/libc/stdio/fwalk.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'newlib/libc/stdio/fwalk.c') 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; } -- cgit v1.2.3