mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 07:12:54 +08:00
Fix some spacing problems
This commit is contained in:
@@ -463,7 +463,7 @@ static inline int fat_parsesfname(const char **path,
|
||||
dirinfo->fd_name[ndx++] = ch;
|
||||
}
|
||||
|
||||
errout:
|
||||
errout:
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
@@ -552,7 +552,7 @@ static inline int fat_parselfname(const char **path,
|
||||
dirinfo->fd_lfname[ndx++] = ch;
|
||||
}
|
||||
|
||||
errout:
|
||||
errout:
|
||||
dirinfo->fd_lfname[0] = '\0';
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
@@ -683,11 +683,11 @@ int fat_mount(struct fat_mountpt_s *fs, bool writeable)
|
||||
|
||||
return OK;
|
||||
|
||||
errout_with_buffer:
|
||||
errout_with_buffer:
|
||||
fat_io_free(fs->fs_buffer, fs->fs_hwsectorsize);
|
||||
fs->fs_buffer = 0;
|
||||
|
||||
errout:
|
||||
errout:
|
||||
fs->fs_mounted = false;
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -333,7 +333,7 @@ static inline int mkfatfs_writembr(FAR struct fat_format_s *fmt,
|
||||
/* Write all of the reserved sectors */
|
||||
|
||||
memset(var->fv_sect, 0, var->fv_sectorsize);
|
||||
for (sectno = 1; sectno < fmt->ff_rsvdseccount && ret >= 0; sectno++)
|
||||
for (sectno = 1; sectno < fmt->ff_rsvdseccount && ret >= 0; sectno++)
|
||||
{
|
||||
ret = DEV_WRITE(var->fv_sect, sectno, 1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user