summaryrefslogtreecommitdiff
path: root/components/libc/newlib/libc.c
diff options
context:
space:
mode:
Diffstat (limited to 'components/libc/newlib/libc.c')
-rw-r--r--components/libc/newlib/libc.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/components/libc/newlib/libc.c b/components/libc/newlib/libc.c
index 8f97e1c8b4..96711784c2 100644
--- a/components/libc/newlib/libc.c
+++ b/components/libc/newlib/libc.c
@@ -21,7 +21,6 @@
int libc_system_init(void)
{
#ifdef RT_USING_DFS
- int fd;
struct rt_device *console_dev;
#ifndef RT_USING_DFS_DEVFS
@@ -33,14 +32,6 @@ int libc_system_init(void)
{
/* initialize console device */
rt_console_init(console_dev->parent.name);
-
- /* open console as stdin/stdout/stderr */
- fd = open("/dev/console", O_RDONLY, 0); /* for stdin */
- fd = open("/dev/console", O_WRONLY, 0); /* for stdout */
- fd = open("/dev/console", O_WRONLY, 0); /* for stderr */
-
- /* skip warning */
- fd = fd;
}
#endif