chid-fundamental: rework bit checking to use FLAGS_SET()

This commit is contained in:
Lennart Poettering
2024-12-20 18:13:16 +01:00
parent 094e2ace12
commit a04af8516e

View File

@@ -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]) {