summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Walle <michael@walle.cc>2016-08-29 08:46:46 (GMT)
committerTom Rini <trini@konsulko.com>2016-09-23 13:02:05 (GMT)
commit011bc3342a485345f7136eed20e0477b8cd5580f (patch)
treed9d38b45daf42574502b5b01a6162113367732a8
parent58a9ecbaf4a2e2754509f52862a8a039b73b3744 (diff)
downloadu-boot-fsl-qoriq-011bc3342a485345f7136eed20e0477b8cd5580f.tar.xz
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>
-rw-r--r--fs/ext4/ext4_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/ext4_common.c b/fs/ext4/ext4_common.c
index caec9d4..cd1bdfe 100644
--- a/fs/ext4/ext4_common.c
+++ b/fs/ext4/ext4_common.c
@@ -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);