diff options
author | 2019-07-08 19:57:11 +0000 | |
---|---|---|
committer | 2019-07-08 19:57:11 +0000 | |
commit | 90eb9cb0ac828ce4484ade8b9350b954c2b2c67b (patch) | |
tree | 723ec55646e4b604a959df1be18279a6bc0d48c4 | |
parent | more cleanup, in particular remove more braces around .Dv, (diff) | |
download | wireguard-openbsd-90eb9cb0ac828ce4484ade8b9350b954c2b2c67b.tar.xz wireguard-openbsd-90eb9cb0ac828ce4484ade8b9350b954c2b2c67b.zip |
vmm(4): remove a "set but not used" variable, found when building the
kernel with gcc9.
ok kettenis
-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 */ |