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
This commit is contained in:
Zhenlei Huang 2024-03-24 23:31:22 +08:00
parent 8a56ef8d75
commit 579cb41b13

View file

@ -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),