Skip to content

Commit dbc1f5a

Browse files
committed
Merge tag 'x86_vmware_for_v6.0_rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 vmware cleanup from Borislav Petkov: - A single statement simplification by using the BIT() macro * tag 'x86_vmware_for_v6.0_rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: x86/vmware: Use BIT() macro for shifting
2 parents 296d3b3 + 4745ca4 commit dbc1f5a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

arch/x86/kernel/cpu/vmware.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -476,8 +476,8 @@ static bool __init vmware_legacy_x2apic_available(void)
476476
{
477477
uint32_t eax, ebx, ecx, edx;
478478
VMWARE_CMD(GETVCPU_INFO, eax, ebx, ecx, edx);
479-
return (eax & (1 << VMWARE_CMD_VCPU_RESERVED)) == 0 &&
480-
(eax & (1 << VMWARE_CMD_LEGACY_X2APIC)) != 0;
479+
return !(eax & BIT(VMWARE_CMD_VCPU_RESERVED)) &&
480+
(eax & BIT(VMWARE_CMD_LEGACY_X2APIC));
481481
}
482482

483483
#ifdef CONFIG_AMD_MEM_ENCRYPT

0 commit comments

Comments
 (0)