Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Joyce <matthew.joyce@embedded-brains.de>2022-04-01 12:30:00 +0300
committerSebastian Huber <sebastian.huber@embedded-brains.de>2022-05-13 13:28:34 +0300
commit5a066d46c99e132ad90593c8ac82f9686c98d469 (patch)
treed35552412b1aefe583694007a486ac8b9d6299a5 /newlib/libc/stdio
parent7c804d160dab276f859b688f2d235a3ccb94c78a (diff)
Remove duplicate stdio initializations
Removed duplicate stdio initializations from __sinit(). These are already initialized in the _REENT_INIT macro in sys/reent.h. This simplification enables the reduction of _GLOBAL_REENT dependency in a follow-on patch.
Diffstat (limited to 'newlib/libc/stdio')
-rw-r--r--newlib/libc/stdio/findfp.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/newlib/libc/stdio/findfp.c b/newlib/libc/stdio/findfp.c
index 1370b63b8..ab3c6a55d 100644
--- a/newlib/libc/stdio/findfp.c
+++ b/newlib/libc/stdio/findfp.c
@@ -259,10 +259,6 @@ __sinit (struct _reent *s)
s->_stdin = __sfp(s);
s->_stdout = __sfp(s);
s->_stderr = __sfp(s);
-# else /* _REENT_GLOBAL_STDIO_STREAMS */
- s->_stdin = &__sf[0];
- s->_stdout = &__sf[1];
- s->_stderr = &__sf[2];
# endif /* _REENT_GLOBAL_STDIO_STREAMS */
#endif