fflush.c: remove duplicate validation

Submitted by ideal on Sept. 16, 2015, 2:23 a.m.

Details

Message ID 1442370211-4510-1-git-send-email-idealities@gmail.com
State New
Headers show

Commit Message

ideal Sept. 16, 2015, 2:23 a.m.
remove duplicate validation of stream

Signed-off-by: ideal <idealities@gmail.com>
---
 libc/stdio/fflush.c | 6 ------
 1 file changed, 6 deletions(-)

Patch hide | download patch | download mbox

diff --git a/libc/stdio/fflush.c b/libc/stdio/fflush.c
index d9104a4..d47d070 100644
--- a/libc/stdio/fflush.c
+++ b/libc/stdio/fflush.c
@@ -140,12 +140,6 @@  int fflush_unlocked(register FILE *stream)
 	}
 #endif
 
-#ifndef NDEBUG
-	if ((stream != NULL) && (stream != (FILE *) &_stdio_openlist)) {
-		__STDIO_STREAM_VALIDATE(stream); /* debugging only */
-	}
-#endif
-
 	return retval;
 
 #else  /* __STDIO_BUFFERS --------------------------------------- */