Use an explicit comparison with VM_GUEST_NO.

Reported by:	jhb
MFC with:	r345359
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Mark Johnston 2019-03-21 20:07:50 +00:00
parent 64087fd7f3
commit a4b59d3db6
2 changed files with 2 additions and 2 deletions

View File

@ -319,7 +319,7 @@ dtrace_gethrtime_init(void *arg)
int i;
#endif
if (vm_guest)
if (vm_guest != VM_GUEST_NO)
return;
/* The current CPU is the reference one. */

View File

@ -321,7 +321,7 @@ dtrace_gethrtime_init(void *arg)
int i;
#endif
if (vm_guest)
if (vm_guest != VM_GUEST_NO)
return;
/* The current CPU is the reference one. */