diff options
author | 2019-07-08 19:57:42 +0000 | |
---|---|---|
committer | 2019-07-08 19:57:42 +0000 | |
commit | 0ef770eee9450b7803b0f38e141f4dedefe0f89b (patch) | |
tree | 471bd2f7062b5f438f29ca31d0cde787677b31a9 | |
parent | vmm(4): remove a "set but not used" variable, found when building the (diff) | |
download | wireguard-openbsd-0ef770eee9450b7803b0f38e141f4dedefe0f89b.tar.xz wireguard-openbsd-0ef770eee9450b7803b0f38e141f4dedefe0f89b.zip |
amd64 pmap: remove a "set but not used" variable, found when building the
kernel with gcc9.
ok kettenis
-rw-r--r-- | sys/arch/amd64/amd64/pmap.c | 6 |
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++; |