Skip to content

Commit 91df9ae

Browse files
refactor: remove possibly unnecessary call to lfs_ctz_fromle32
1 parent adad0fb commit 91df9ae

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

lfs.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1433,10 +1433,9 @@ static int lfs_dir_getinfo(lfs_t *lfs, lfs_mdir_t *dir,
14331433
if (tag < 0) {
14341434
return (int)tag;
14351435
}
1436-
lfs_ctz_fromle32(&ctz);
14371436

14381437
if (lfs_tag_type3(tag) == LFS_TYPE_CTZSTRUCT) {
1439-
info->size = ctz.size;
1438+
info->size = lfs_fromle32(ctz.size);
14401439
} else if (lfs_tag_type3(tag) == LFS_TYPE_INLINESTRUCT) {
14411440
info->size = lfs_tag_size(tag);
14421441
}

0 commit comments

Comments
 (0)