From f3a6e775a1e52ea6f85a145d60a88b3f6356a96c Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 24 Jul 2013 12:03:45 +0200 Subject: [PATCH] block: remove uneeded le32_to_cpu() calls in vfat probe function - the call is not required due to direct memcmp() and actually breaks the filesystem signature --- libblkid-tiny/vfat.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/libblkid-tiny/vfat.c b/libblkid-tiny/vfat.c index c805f60..a24e6c3 100644 --- a/libblkid-tiny/vfat.c +++ b/libblkid-tiny/vfat.c @@ -385,8 +385,6 @@ static int probe_vfat(blkid_probe pr, const struct blkid_idmag *mag) return -1; fsinfo = (struct fat32_fsinfo *) buf; - *fsinfo->signature1 = le32_to_cpu(*fsinfo->signature1); - *fsinfo->signature2 = le32_to_cpu(*fsinfo->signature2); if (memcmp(fsinfo->signature1, "\x52\x52\x61\x41", 4) != 0 && memcmp(fsinfo->signature1, "\x52\x52\x64\x41", 4) != 0 && memcmp(fsinfo->signature1, "\x00\x00\x00\x00", 4) != 0) -- 2.25.1