git: f3b21c553681 - stable/13 - acpi_hpet: Make use of enum for vm_guest to improve readability

From: Zhenlei Huang <zlei_at_FreeBSD.org>
Date: Sun, 31 Mar 2024 15:56:16 UTC
The branch stable/13 has been updated by zlei:

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

commit f3b21c5536816eae4d8ecbbddd790419753d403a
Author:     Zhenlei Huang <zlei@FreeBSD.org>
AuthorDate: 2024-03-24 15:31:22 +0000
Commit:     Zhenlei Huang <zlei@FreeBSD.org>
CommitDate: 2024-03-31 15:55:49 +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
    
    (cherry picked from commit 579cb41b132f532bf4915121c0d0b2f43688242e)
    (cherry picked from commit ddd779a062c1de28a3f632ece9fe4d1abf07dbdb)
---
 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 a32edb9c7e7a..d30bc99047a9 100644
--- a/sys/dev/acpica/acpi_hpet.c
+++ b/sys/dev/acpica/acpi_hpet.c
@@ -645,7 +645,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),