From dd9ad586ffe578ab4176f594e0b803291bc2d443 Mon Sep 17 00:00:00 2001 From: patacongo Date: Fri, 16 Sep 2011 14:07:17 +0000 Subject: 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 --- nuttx/fs/fat/fs_fat32dirent.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nuttx/fs/fat/fs_fat32dirent.c') 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; } -- cgit v1.2.3