diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2006-06-22 21:56:49 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2006-06-22 21:56:49 +0000 |
commit | 9bd4d1cdd0cb2f1e92b6ab2eda9bdaa7cb7fa35f (patch) | |
tree | 534f39787cf4a9d7278537f207f7ef46b8cb7d97 | |
parent | 85440c3ce7a321209491694546dbd5d8806ebf2e (diff) |
2006-06-22 Joel Sherrill <joel@OARcorp.com>
PR 1101/rtems
* src/base_fs.c: Remove dead code.
-rw-r--r-- | cpukit/libcsupport/ChangeLog | 5 | ||||
-rw-r--r-- | cpukit/libcsupport/src/base_fs.c | 29 |
2 files changed, 10 insertions, 24 deletions
diff --git a/cpukit/libcsupport/ChangeLog b/cpukit/libcsupport/ChangeLog index bce4d03274..04fb5b2d07 100644 --- a/cpukit/libcsupport/ChangeLog +++ b/cpukit/libcsupport/ChangeLog @@ -1,3 +1,8 @@ +2006-06-22 Joel Sherrill <joel@OARcorp.com> + + PR 1101/rtems + * src/base_fs.c: Remove dead code. + 2006-03-07 Till Strauman <strauman@slac.stanford.edu> PR 830/filesystem diff --git a/cpukit/libcsupport/src/base_fs.c b/cpukit/libcsupport/src/base_fs.c index 60279afd4b..65378c6137 100644 --- a/cpukit/libcsupport/src/base_fs.c +++ b/cpukit/libcsupport/src/base_fs.c @@ -43,9 +43,6 @@ rtems_user_env_t * rtems_current_user_env = &rtems_global_user_env; void rtems_filesystem_initialize( void ) { #if !defined(RTEMS_UNIX) -#if 0 - int i; -#endif int status; rtems_filesystem_mount_table_entry_t *entry; rtems_filesystem_mount_table_t *mt; @@ -123,28 +120,12 @@ void rtems_filesystem_initialize( void ) if ( status != 0 ) rtems_fatal_error_occurred( 0xABCD0003 ); - /* - * This code if if'ed 0 out because you can't mount another - * filesystem properly until the mount point it will be - * mounted onto is created. Moreover, if it is going to + /* + * You can't mount another filesystem properly until the mount point + * it will be mounted onto is created. Moreover, if it is going to * use a device, then it is REALLY unfair to attempt this - * before device drivers are initialized. - */ - -#if 0 - /* - * Now if there are other filesystems to mount, go for it. + * before device drivers are initialized. So we return via a base + * filesystem image and nothing auto-mounted at this point. */ - - for ( i=1 ; i < rtems_filesystem_mount_table_size ; i++ ) { - mt = &rtems_filesystem_mount_table[0]; - - status = mount( - &entry, mt->fs_ops, mt->fsoptions, mt->device, mt->mount_point ); - - if ( status == -1 ) - rtems_fatal_error_occurred( 0xABCD0003 ); - } -#endif #endif } |