From: Jo-Philipp Wich Date: Wed, 24 Jul 2013 10:03:45 +0000 (+0200) Subject: block: remove uneeded le32_to_cpu() calls in vfat probe function - the call is not... X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f3a6e775a1e52ea6f85a145d60a88b3f6356a96c;p=oweals%2Fubox.git 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 --- 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)