diff --git a/sysdeps/linux/disk.c b/sysdeps/linux/disk.c index f79c1a06..86d19652 100644 --- a/sysdeps/linux/disk.c +++ b/sysdeps/linux/disk.c @@ -109,14 +109,14 @@ find_primary_part (partition_info *primary_part, const char *m) primary_part->max++; } - else if ((strcmp (primary_part[n-1].type, "lvm") == 0) && (strcmp (type, "lvm") == 0) || - (strcmp (primary_part[n-1].type, "raid") == 0) && (strncmp (type, "raid", 4) == 0)) { + else if (((strcmp (primary_part[n-1].type, "lvm") == 0) && (strcmp (type, "lvm") == 0)) || + ((strcmp (primary_part[n-1].type, "raid") == 0) && (strncmp (type, "raid", 4) == 0))) { n--; } - else if ((strcmp (primary_part[n-1].type, "lvm") == 0) && (strcmp (type, "part") == 0) || - (strcmp (primary_part[n-1].type, "raid") == 0) && (strcmp (type, "part") == 0)) { + else if (((strcmp (primary_part[n-1].type, "lvm") == 0) && (strcmp (type, "part") == 0)) || + ((strcmp (primary_part[n-1].type, "raid") == 0) && (strcmp (type, "part") == 0))) { n--; tlvl = 1;