From fb4541be87e5a782174e23c317a4dcbe2d4b7a30 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 19 May 2000 19:02:30 +0000 Subject: [PATCH] Removed duplicated call to unmount filesystem. --- c/src/lib/libc/unmount.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/c/src/lib/libc/unmount.c b/c/src/lib/libc/unmount.c index c4b6bdae7d..52278d96d5 100644 --- a/c/src/lib/libc/unmount.c +++ b/c/src/lib/libc/unmount.c @@ -62,7 +62,6 @@ int unmount( int status; rtems_filesystem_location_info_t temp_loc; rtems_filesystem_mount_table_entry_t temp_mt_entry; - int result; /* * Are there any file systems below the mount_path specified @@ -101,7 +100,7 @@ int unmount( /* * Allow the file system being mounted on to do its cleanup. * XXX - Did I change these correctly ??? It looks like either I did - * XXX this backwards or the IMFS_unmount and IMFS_fsumount are swaped. + * XXX this backwards or the IMFS_unmount and IMFS_fsumount are swapped. * XXX Add to the mt_point_node unmount to set the mt_entry back to null * XXX I will step off in space when evaluating past the end of the node. */ @@ -120,12 +119,6 @@ int unmount( return -1; } - /* - * Allow the file system to clean up. - */ - - result = (*temp_loc.ops->fsunmount_me)( temp_loc.mt_entry ); - /* * Extract the mount table entry from the chain */ @@ -140,8 +133,6 @@ int unmount( free( temp_loc.mt_entry ); rtems_filesystem_freenode( &temp_loc ); - return result; - }