From 31a908ea3a988d95819ba68807c5f65eff0dfa32 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Mon, 8 Sep 2014 08:57:25 -0600 Subject: [PATCH] Cosmetic changes to comments/spacing --- configs/sama5d4-ek/src/sam_bringup.c | 2 ++ fs/fat/fs_fat32.c | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/configs/sama5d4-ek/src/sam_bringup.c b/configs/sama5d4-ek/src/sam_bringup.c index b1c795fb83..d94cebcfc9 100644 --- a/configs/sama5d4-ek/src/sam_bringup.c +++ b/configs/sama5d4-ek/src/sam_bringup.c @@ -124,6 +124,7 @@ int sam_bringup(void) #ifdef CONFIG_SAMA5D4EK_HSMCI0_MOUNT else { + /* REVISIT: A delay seems to be required here or the mount will fail. */ /* Mount the volume on HSMCI0 */ ret = mount(CONFIG_SAMA5D4EK_HSMCI0_MOUNT_BLKDEV, @@ -153,6 +154,7 @@ int sam_bringup(void) #ifdef CONFIG_SAMA5D4EK_HSMCI1_MOUNT else { + /* REVISIT: A delay seems to be required here or the mount will fail. */ /* Mount the volume on HSMCI1 */ ret = mount(CONFIG_SAMA5D4EK_HSMCI1_MOUNT_BLKDEV, diff --git a/fs/fat/fs_fat32.c b/fs/fat/fs_fat32.c index 251d228361..8e886f4b62 100644 --- a/fs/fat/fs_fat32.c +++ b/fs/fat/fs_fat32.c @@ -1016,9 +1016,9 @@ static off_t fat_seek(FAR struct file *filep, off_t offset, int whence) if (position > ff->ff_size && (ff->ff_oflags & O_WROK) == 0) { - /* Otherwise, the position is limited to the file size */ + /* Otherwise, the position is limited to the file size */ - position = ff->ff_size; + position = ff->ff_size; } /* Set file position to the beginning of the file (first cluster, @@ -1159,8 +1159,8 @@ static off_t fat_seek(FAR struct file *filep, off_t offset, int whence) if ((ff->ff_oflags & O_WROK) != 0 && filep->f_pos > ff->ff_size) { - ff->ff_size = filep->f_pos; - ff->ff_bflags |= FFBUFF_MODIFIED; + ff->ff_size = filep->f_pos; + ff->ff_bflags |= FFBUFF_MODIFIED; } fat_semgive(fs);