git: 579cb41b132f - main - acpi_hpet: Make use of enum for vm_guest to improve readability

From: Zhenlei Huang <zlei_at_FreeBSD.org>
Date: Sun, 24 Mar 2024 15:32:00 UTC
The branch main has been updated by zlei:

URL: https://cgit.FreeBSD.org/src/commit/?id=579cb41b132f532bf4915121c0d0b2f43688242e

commit 579cb41b132f532bf4915121c0d0b2f43688242e
Author:     Zhenlei Huang <zlei@FreeBSD.org>
AuthorDate: 2024-03-24 15:31:22 +0000
Commit:     Zhenlei Huang <zlei@FreeBSD.org>
CommitDate: 2024-03-24 15:31:22 +0000

    acpi_hpet: Make use of enum for vm_guest to improve readability
    
    No functional change intended.
    
    MFC after:      1 week
    Differential Revision:  https://reviews.freebsd.org/D44402
---
 sys/dev/acpica/acpi_hpet.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/dev/acpica/acpi_hpet.c b/sys/dev/acpica/acpi_hpet.c
index de75e70a2d49..9a1abe6ca72d 100644
--- a/sys/dev/acpica/acpi_hpet.c
+++ b/sys/dev/acpica/acpi_hpet.c
@@ -643,7 +643,7 @@ hpet_attach(device_t dev)
 	 * The only way to use HPET there is to specify IRQs manually
 	 * and/or use legacy_route. Legacy_route mode works on both.
 	 */
-	if (vm_guest)
+	if (vm_guest != VM_GUEST_NO)
 		sc->allowed_irqs = 0x00000000;
 	/* Let user override. */
 	resource_int_value(device_get_name(dev), device_get_unit(dev),