diff options
author | Mike Larkin <mlarkin@cvs.openbsd.org> | 2019-07-08 19:57:12 +0000 |
---|---|---|
committer | Mike Larkin <mlarkin@cvs.openbsd.org> | 2019-07-08 19:57:12 +0000 |
commit | 5beb1fb65ed00001588ea8c923c78539eed17570 (patch) | |
tree | 07bb0130d9e8879ec265c0833d0e5448a288ca4d /sys | |
parent | 1a1334d1cdbe970592362f65296f5a9ea2138a91 (diff) |
vmm(4): remove a "set but not used" variable, found when building the
kernel with gcc9.
ok kettenis
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/amd64/amd64/vmm.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/arch/amd64/amd64/vmm.c b/sys/arch/amd64/amd64/vmm.c index 44740b77197..3c5e45e6409 100644 --- a/sys/arch/amd64/amd64/vmm.c +++ b/sys/arch/amd64/amd64/vmm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vmm.c,v 1.247 2019/06/24 02:49:19 mlarkin Exp $ */ +/* $OpenBSD: vmm.c,v 1.248 2019/07/08 19:57:11 mlarkin Exp $ */ /* * Copyright (c) 2014 Mike Larkin <mlarkin@openbsd.org> * @@ -310,7 +310,7 @@ vmm_enabled(void) { struct cpu_info *ci; CPU_INFO_ITERATOR cii; - int found_vmx = 0, found_svm = 0, vmm_disabled = 0; + int found_vmx = 0, found_svm = 0; /* Check if we have at least one CPU with either VMX or SVM */ CPU_INFO_FOREACH(cii, ci) { @@ -318,8 +318,6 @@ vmm_enabled(void) found_vmx = 1; if (ci->ci_vmm_flags & CI_VMM_SVM) found_svm = 1; - if (ci->ci_vmm_flags & CI_VMM_DIS) - vmm_disabled = 1; } /* Don't support both SVM and VMX at the same time */ |