Cosmetic changes to comments/spacing
This commit is contained in:
parent
1fededf265
commit
31a908ea3a
@ -124,6 +124,7 @@ int sam_bringup(void)
|
|||||||
#ifdef CONFIG_SAMA5D4EK_HSMCI0_MOUNT
|
#ifdef CONFIG_SAMA5D4EK_HSMCI0_MOUNT
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
/* REVISIT: A delay seems to be required here or the mount will fail. */
|
||||||
/* Mount the volume on HSMCI0 */
|
/* Mount the volume on HSMCI0 */
|
||||||
|
|
||||||
ret = mount(CONFIG_SAMA5D4EK_HSMCI0_MOUNT_BLKDEV,
|
ret = mount(CONFIG_SAMA5D4EK_HSMCI0_MOUNT_BLKDEV,
|
||||||
@ -153,6 +154,7 @@ int sam_bringup(void)
|
|||||||
#ifdef CONFIG_SAMA5D4EK_HSMCI1_MOUNT
|
#ifdef CONFIG_SAMA5D4EK_HSMCI1_MOUNT
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
/* REVISIT: A delay seems to be required here or the mount will fail. */
|
||||||
/* Mount the volume on HSMCI1 */
|
/* Mount the volume on HSMCI1 */
|
||||||
|
|
||||||
ret = mount(CONFIG_SAMA5D4EK_HSMCI1_MOUNT_BLKDEV,
|
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)
|
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,
|
/* 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)
|
if ((ff->ff_oflags & O_WROK) != 0 && filep->f_pos > ff->ff_size)
|
||||||
{
|
{
|
||||||
ff->ff_size = filep->f_pos;
|
ff->ff_size = filep->f_pos;
|
||||||
ff->ff_bflags |= FFBUFF_MODIFIED;
|
ff->ff_bflags |= FFBUFF_MODIFIED;
|
||||||
}
|
}
|
||||||
|
|
||||||
fat_semgive(fs);
|
fat_semgive(fs);
|
||||||
|
Loading…
Reference in New Issue
Block a user