From a04af8516e684e2652877c4259188f01be7fe9bb Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 20 Dec 2024 18:13:16 +0100 Subject: [PATCH] chid-fundamental: rework bit checking to use FLAGS_SET() --- src/fundamental/chid-fundamental.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fundamental/chid-fundamental.c b/src/fundamental/chid-fundamental.c index 8a18df3335..b12191b99c 100644 --- a/src/fundamental/chid-fundamental.c +++ b/src/fundamental/chid-fundamental.c @@ -43,7 +43,7 @@ static void get_chid( sha1_process_bytes(&namespace, sizeof(namespace), &ctx); for (ChidSmbiosFields i = 0; i < _CHID_SMBIOS_FIELDS_MAX; i++) { - if (!((mask >> i) & 1)) + if (!FLAGS_SET(mask, UINT32_C(1) << i)) continue; if (!smbios_fields[i]) {