]> sourceware.org Git - newlib-cygwin.git/commitdiff
* libc/stdio/fwalk.c (_fwalk): Remove redundant test.
authorCorinna Vinschen <corinna@vinschen.de>
Tue, 9 Jul 2013 13:07:16 +0000 (13:07 +0000)
committerCorinna Vinschen <corinna@vinschen.de>
Tue, 9 Jul 2013 13:07:16 +0000 (13:07 +0000)
newlib/ChangeLog
newlib/libc/stdio/fwalk.c

index 420a15ae48e9e2ee2ecbd94fb809c1e205d6fc8a..fc5619bd478c30fefe9f6b41facd833dc1bf3bd5 100644 (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.
index df92d1d81810dc9f681a29110b0dbff7dfe8fb5a..975e4b001f6cd330495ddef8cb28561efdd64467 100644 (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;
 }
This page took 0.044334 seconds and 5 git commands to generate.