]> git.sur5r.net Git - u-boot/commitdiff
ext4: fix wrong usage of le32_to_cpu()
authorMichael Walle <michael@walle.cc>
Mon, 29 Aug 2016 08:46:46 +0000 (10:46 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 23 Sep 2016 13:02:05 +0000 (09:02 -0400)
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

index caec9d45779bfedbc98ccbf5e40bd11b47df84fa..cd1bdfe025ad9282c97699995e79d77c20dd70eb 100644 (file)
@@ -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);