diff mbox

[U-Boot,v3,4/4] ext4: fix wrong usage of le32_to_cpu()

Message ID 1472460406-20418-5-git-send-email-michael@walle.cc
State Accepted
Delegated to: Tom Rini
Headers show

Commit Message

Michael Walle Aug. 29, 2016, 8:46 a.m. UTC
le32_to_cpu() must only convert the revision_level and not the boolean
result.

Signed-off-by: Michael Walle <michael@walle.cc>
---
 fs/ext4/ext4_common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Tom Rini Sept. 23, 2016, 7:55 p.m. UTC | #1
On Mon, Aug 29, 2016 at 10:46:46AM +0200, Michael Walle wrote:

> le32_to_cpu() must only convert the revision_level and not the boolean
> result.
> 
> Signed-off-by: Michael Walle <michael@walle.cc>

Applied to u-boot/master, thanks!
diff mbox

Patch

diff --git a/fs/ext4/ext4_common.c b/fs/ext4/ext4_common.c
index 567350f..4a003cf 100644
--- a/fs/ext4/ext4_common.c
+++ b/fs/ext4/ext4_common.c
@@ -2268,7 +2268,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);