aboutsummaryrefslogtreecommitdiff
path: root/nuttx/fs/fat/fs_fat32util.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-01-14 19:22:32 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-01-14 19:22:32 +0000
commitcc3614dfe8f67033dca8c7c1f40c3367a0d3ca06 (patch)
tree45a3ce8d73b15e96d13ef6a48171a61a1a8449b8 /nuttx/fs/fat/fs_fat32util.c
parent930f9a13511a6d9bc2e44fadef42f6345d921667 (diff)
downloadpx4-firmware-cc3614dfe8f67033dca8c7c1f40c3367a0d3ca06.tar.gz
px4-firmware-cc3614dfe8f67033dca8c7c1f40c3367a0d3ca06.tar.bz2
px4-firmware-cc3614dfe8f67033dca8c7c1f40c3367a0d3ca06.zip
Finish dup logic for open files; fix bug in sigtimedwait(), would return wrong signo value if the signal was already pending
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5517 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/fs/fat/fs_fat32util.c')
-rw-r--r--nuttx/fs/fat/fs_fat32util.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/nuttx/fs/fat/fs_fat32util.c b/nuttx/fs/fat/fs_fat32util.c
index 7231456d7..9aa1d3992 100644
--- a/nuttx/fs/fat/fs_fat32util.c
+++ b/nuttx/fs/fat/fs_fat32util.c
@@ -692,8 +692,6 @@ int fat_checkmount(struct fat_mountpt_s *fs)
if (fs && fs->fs_mounted)
{
- struct fat_file_s *file;
-
/* We still think the mount is healthy. Check an see if this is
* still the case
*/
@@ -715,14 +713,8 @@ int fat_checkmount(struct fat_mountpt_s *fs)
/* If we get here, the mount is NOT healthy */
fs->fs_mounted = false;
-
- /* Make sure that this is flagged in every opened file */
-
- for (file = fs->fs_head; file; file = file->ff_next)
- {
- file->ff_open = false;
- }
}
+
return -ENODEV;
}