From: Daan De Meyer Date: Mon, 21 Nov 2022 09:28:36 +0000 (+0100) Subject: repart: Use IN_SET() in one more place X-Git-Tag: v253-rc1~485^2~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c1979cd881cce63902cf8f7e633bf7dd081162f7;p=thirdparty%2Fsystemd.git repart: Use IN_SET() in one more place --- diff --git a/src/partition/repart.c b/src/partition/repart.c index 07efcd2857b..b4ef7b8e34b 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 */