summaryrefslogtreecommitdiff
path: root/nuttx/sched/sched_setuptaskfiles.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-03-21 20:02:52 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-03-21 20:02:52 +0000
commit038192c8c108c106ee6b5d918eabc0c0274b14fa (patch)
tree37eadf8831c330ab0dbccb6ed6dae66ecb4ac89b /nuttx/sched/sched_setuptaskfiles.c
parentafbd98ac2b65181e668993b3cec6ee372dd0660e (diff)
downloadpx4-nuttx-038192c8c108c106ee6b5d918eabc0c0274b14fa.tar.gz
px4-nuttx-038192c8c108c106ee6b5d918eabc0c0274b14fa.tar.bz2
px4-nuttx-038192c8c108c106ee6b5d918eabc0c0274b14fa.zip
This achieves successful DM320 boot with a minimal system
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@115 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched/sched_setuptaskfiles.c')
-rw-r--r--nuttx/sched/sched_setuptaskfiles.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/nuttx/sched/sched_setuptaskfiles.c b/nuttx/sched/sched_setuptaskfiles.c
index 2aee2e3d1..9fef59278 100644
--- a/nuttx/sched/sched_setuptaskfiles.c
+++ b/nuttx/sched/sched_setuptaskfiles.c
@@ -76,6 +76,7 @@ int sched_setuptaskfiles(FAR _TCB *tcb)
FAR _TCB *rtcb = (FAR _TCB*)g_readytorun.head;
int i;
#endif /* CONFIG_DEV_CONSOLE */
+ int ret = OK;
/* Allocate file descriptors for the TCB */
@@ -101,11 +102,10 @@ int sched_setuptaskfiles(FAR _TCB *tcb)
#if CONFIG_NFILE_STREAMS > 0
/* Allocate file streams for the TCB */
- return sched_setupstreams(tcb);
-#else
- return OK;
+ ret = sched_setupstreams(tcb);
#endif /* CONFIG_NFILE_STREAMS */
#endif /* CONFIG_DEV_CONSOLE */
+ return ret;
}
#endif /* CONFIG_NFILE_DESCRIPTORS */