mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-17 12:41:32 +00:00
ext4: fix wrong usage of le32_to_cpu()
le32_to_cpu() must only convert the revision_level and not the boolean result. Signed-off-by: Michael Walle <michael@walle.cc>
This commit is contained in:
parent
58a9ecbaf4
commit
011bc3342a
1 changed files with 1 additions and 1 deletions
|
@ -2273,7 +2273,7 @@ int ext4fs_mount(unsigned part_length)
|
|||
goto fail;
|
||||
}
|
||||
|
||||
if (le32_to_cpu(data->sblock.revision_level == 0))
|
||||
if (le32_to_cpu(data->sblock.revision_level) == 0)
|
||||
fs->inodesz = 128;
|
||||
else
|
||||
fs->inodesz = le16_to_cpu(data->sblock.inode_size);
|
||||
|
|
Loading…
Add table
Reference in a new issue