From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Walle Date: Fri, 12 Aug 2016 15:16:21 +0200 Subject: [U-Boot] [PATCH 4/4] ext4: fix wrong usage of le32_to_cpu() In-Reply-To: <1471007781-23656-1-git-send-email-michael@walle.cc> References: <1471007781-23656-1-git-send-email-michael@walle.cc> Message-ID: <1471007781-23656-4-git-send-email-michael@walle.cc> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de le32_to_cpu() must only convert the revision_level and not the boolean result. Signed-off-by: Michael Walle --- fs/ext4/ext4_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ext4/ext4_common.c b/fs/ext4/ext4_common.c index 4eb4e18..b00b84f 100644 --- a/fs/ext4/ext4_common.c +++ b/fs/ext4/ext4_common.c @@ -2251,7 +2251,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); -- 2.1.4