diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-09-08 08:57:25 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-09-08 08:57:25 -0600 |
commit | 755f7fb8a77d0f24f70e8395b4bf903a244c5ebf (patch) | |
tree | 4144b2b31914eff9ff9bfec6887f61a6813ca4e6 /nuttx | |
parent | e687771fdeed9376e6dd1980e0e09169ad69fc09 (diff) | |
download | px4-nuttx-755f7fb8a77d0f24f70e8395b4bf903a244c5ebf.tar.gz px4-nuttx-755f7fb8a77d0f24f70e8395b4bf903a244c5ebf.tar.bz2 px4-nuttx-755f7fb8a77d0f24f70e8395b4bf903a244c5ebf.zip |
Cosmetic changes to comments/spacing
Diffstat (limited to 'nuttx')
-rw-r--r-- | nuttx/configs/sama5d4-ek/src/sam_bringup.c | 2 | ||||
-rw-r--r-- | nuttx/fs/fat/fs_fat32.c | 8 |
2 files changed, 6 insertions, 4 deletions
diff --git a/nuttx/configs/sama5d4-ek/src/sam_bringup.c b/nuttx/configs/sama5d4-ek/src/sam_bringup.c index b1c795fb8..d94cebcfc 100644 --- a/nuttx/configs/sama5d4-ek/src/sam_bringup.c +++ b/nuttx/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/nuttx/fs/fat/fs_fat32.c b/nuttx/fs/fat/fs_fat32.c index 251d22836..8e886f4b6 100644 --- a/nuttx/fs/fat/fs_fat32.c +++ b/nuttx/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); |