partitions: msdos: fix one-byte get_unaligned()
[linux-2.6-microblaze.git] / block / partitions / ldm.c
index d333786..cc86534 100644 (file)
@@ -510,7 +510,7 @@ static bool ldm_validate_partition_table(struct parsed_partitions *state)
 
        p = (struct msdos_partition *)(data + 0x01BE);
        for (i = 0; i < 4; i++, p++)
-               if (SYS_IND (p) == LDM_PARTITION) {
+               if (p->sys_ind == LDM_PARTITION) {
                        result = true;
                        break;
                }