From c1979cd881cce63902cf8f7e633bf7dd081162f7 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Mon, 21 Nov 2022 10:28:36 +0100 Subject: [PATCH] repart: Use IN_SET() in one more place --- src/partition/repart.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/partition/repart.c b/src/partition/repart.c index 07efcd2857..b4ef7b8e34 100644 --- a/src/partition/repart.c +++ b/src/partition/repart.c @@ -1643,9 +1643,7 @@ static int partition_read_definition(Partition *p, const char *path, const char verity_mode_to_string(p->verity)); /* Verity partitions are read only, let's imply the RO flag hence, unless explicitly configured otherwise. */ - if ((p->type.designator == PARTITION_ROOT_VERITY || - p->type.designator == PARTITION_USR_VERITY) && - p->read_only < 0) + if (IN_SET(p->type.designator, PARTITION_ROOT_VERITY, PARTITION_USR_VERITY) && p->read_only < 0) p->read_only = true; /* Default to "growfs" on, unless read-only */ -- 2.25.1