mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 08:25:20 +09:00
chid-fundamental: rework bit checking to use FLAGS_SET()
This commit is contained in:
@@ -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]) {
|
||||
|
||||
Reference in New Issue
Block a user