From: Michael Walle <michael@walle.cc>
Date: Mon, 29 Aug 2016 08:46:46 +0000 (+0200)
Subject: ext4: fix wrong usage of le32_to_cpu()
X-Git-Tag: v2025.01-rc5-pxa1908~8519
X-Git-Url: http://git.dujemihanovic.xyz/%22/icons/right.gif/static/git-logo.png?a=commitdiff_plain;h=011bc3342a485345f7136eed20e0477b8cd5580f;p=u-boot.git

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>
---

diff --git a/fs/ext4/ext4_common.c b/fs/ext4/ext4_common.c
index caec9d4577..cd1bdfe025 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);