diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-09-16 14:07:17 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-09-16 14:07:17 +0000 |
commit | dd9ad586ffe578ab4176f594e0b803291bc2d443 (patch) | |
tree | e3f36345049a20b9fd3bdf2eeb47582bfa2700e9 /nuttx/fs/fat/fs_fat32dirent.c | |
parent | 7da9d707ebf877eeda8d126a8489997cc32eaa5d (diff) | |
download | px4-nuttx-dd9ad586ffe578ab4176f594e0b803291bc2d443.tar.gz px4-nuttx-dd9ad586ffe578ab4176f594e0b803291bc2d443.tar.bz2 px4-nuttx-dd9ad586ffe578ab4176f594e0b803291bc2d443.zip |
Fix a stray write into the FAT
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3958 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/fs/fat/fs_fat32dirent.c')
-rw-r--r-- | nuttx/fs/fat/fs_fat32dirent.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/fs/fat/fs_fat32dirent.c b/nuttx/fs/fat/fs_fat32dirent.c index 7f3cc38d6..0627b9bba 100644 --- a/nuttx/fs/fat/fs_fat32dirent.c +++ b/nuttx/fs/fat/fs_fat32dirent.c @@ -2505,7 +2505,7 @@ int fat_allocatedirentry(struct fat_mountpt_s *fs, struct fat_dirinfo_s *dirinfo for (i = fs->fs_fatsecperclus; i; i--) { ret = fat_hwwrite(fs, fs->fs_buffer, sector, 1); - if ( ret < 0) + if (ret < 0) { return ret; } |