src/ssd/ssd.c: fix incorrect condition in ssd_part_contains()

This commit is contained in:
tokyo4j 2024-07-23 17:52:42 +09:00 committed by Hiroaki Yamamoto
parent a75301dae5
commit e934c7a417

View file

@ -342,7 +342,7 @@ ssd_part_contains(enum ssd_part_type whole, enum ssd_part_type candidate)
}
if (whole == LAB_SSD_PART_TOP) {
return candidate == LAB_SSD_PART_CORNER_TOP_LEFT
|| candidate == LAB_SSD_PART_CORNER_BOTTOM_LEFT;
|| candidate == LAB_SSD_PART_CORNER_TOP_RIGHT;
}
if (whole == LAB_SSD_PART_RIGHT) {
return candidate == LAB_SSD_PART_CORNER_TOP_RIGHT