diff --git a/components/dfs/filesystems/elmfat/dfs_elm.c b/components/dfs/filesystems/elmfat/dfs_elm.c index b6d2c2388a..b4c4c627aa 100644 --- a/components/dfs/filesystems/elmfat/dfs_elm.c +++ b/components/dfs/filesystems/elmfat/dfs_elm.c @@ -495,7 +495,9 @@ int dfs_elm_ioctl(struct dfs_fd *file, int cmd, void *args) { fd->fptr = length; result = f_truncate(fd); - }else{ + } + else + { result = f_lseek(fd, length); } /* restore file read/write point */