summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMike Larkin <mlarkin@cvs.openbsd.org>2019-07-08 19:57:43 +0000
committerMike Larkin <mlarkin@cvs.openbsd.org>2019-07-08 19:57:43 +0000
commitfd0529ea8cc00b75183e38cb11e9475e2b1f8933 (patch)
tree86ad01be5b90c21f5a3819ad066453ccc57cb4f2 /sys
parent5beb1fb65ed00001588ea8c923c78539eed17570 (diff)
amd64 pmap: 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/pmap.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/arch/amd64/amd64/pmap.c b/sys/arch/amd64/amd64/pmap.c
index 2fbbfdf4f7b..a62d54891da 100644
--- a/sys/arch/amd64/amd64/pmap.c
+++ b/sys/arch/amd64/amd64/pmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.c,v 1.132 2019/04/24 04:12:36 guenther Exp $ */
+/* $OpenBSD: pmap.c,v 1.133 2019/07/08 19:57:42 mlarkin Exp $ */
/* $NetBSD: pmap.c,v 1.3 2003/05/08 18:13:13 thorpej Exp $ */
/*
@@ -2401,7 +2401,7 @@ pmap_enter_ept(struct pmap *pmap, paddr_t gpa, paddr_t hpa, vm_prot_t prot)
{
uint64_t l4idx, l3idx, l2idx, l1idx;
pd_entry_t *pd, npte;
- struct vm_page *ptp, *pptp, *pg;
+ struct vm_page *ptp, *pptp;
paddr_t npa;
struct uvm_object *obj;
@@ -2546,8 +2546,6 @@ pmap_enter_ept(struct pmap *pmap, paddr_t gpa, paddr_t hpa, vm_prot_t prot)
if (prot & PROT_EXEC)
npte |= EPT_X;
- pg = PHYS_TO_VM_PAGE(hpa);
-
if (pd[l1idx] == 0) {
ptp->wire_count++;
pmap->pm_stats.resident_count++;