aboutsummaryrefslogtreecommitdiff
path: root/nuttx/sched/sched_setuppthreadfiles.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/sched/sched_setuppthreadfiles.c')
-rw-r--r--nuttx/sched/sched_setuppthreadfiles.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/nuttx/sched/sched_setuppthreadfiles.c b/nuttx/sched/sched_setuppthreadfiles.c
index 78d6cbfec..91d72fa7f 100644
--- a/nuttx/sched/sched_setuppthreadfiles.c
+++ b/nuttx/sched/sched_setuppthreadfiles.c
@@ -77,8 +77,6 @@
int sched_setuppthreadfiles(FAR _TCB *tcb)
{
- FAR _TCB *rtcb = (FAR _TCB*)g_readytorun.head;
-
#if CONFIG_NSOCKET_DESCRIPTORS > 0
/* The child thread inherits the parent socket descriptors */
@@ -87,13 +85,6 @@ int sched_setuppthreadfiles(FAR _TCB *tcb)
#endif /* CONFIG_NSOCKET_DESCRIPTORS */
-#if CONFIG_NFILE_STREAMS > 0
- /* The child thread inherits the parent streams */
-
- tcb->streams = rtcb->streams;
- lib_addreflist(tcb->streams);
-
-#endif /* CONFIG_NFILE_STREAMS */
return OK;
}