Skip to content
Snippets Groups Projects
Commit 31a908ea authored by Gregory Nutt's avatar Gregory Nutt
Browse files

Cosmetic changes to comments/spacing

parent 1fededf2
No related branches found
No related tags found
No related merge requests found
......@@ -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,
......
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment