summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/arch/powerpc/powerpc/pmap.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/sys/arch/powerpc/powerpc/pmap.c b/sys/arch/powerpc/powerpc/pmap.c
index 289da0ca3e7..a1bbe01da38 100644
--- a/sys/arch/powerpc/powerpc/pmap.c
+++ b/sys/arch/powerpc/powerpc/pmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.c,v 1.169 2019/01/02 23:08:35 kettenis Exp $ */
+/* $OpenBSD: pmap.c,v 1.170 2019/09/03 14:34:41 deraadt Exp $ */
/*
* Copyright (c) 2015 Martin Pieuchot
@@ -440,12 +440,6 @@ PTED_MANAGED(struct pte_desc *pted)
}
static inline u_int32_t
-PTED_WIRED(struct pte_desc *pted)
-{
- return (pted->pted_va & PTED_VA_WIRED_M);
-}
-
-static inline u_int32_t
PTED_VALID(struct pte_desc *pted)
{
if (ppc_proc_is_64b)
@@ -971,7 +965,7 @@ pmap_test_attrs(struct vm_page *pg, u_int flagbit)
/* PTE_REF_32 == PTE_REF_64 */
bits = pg->pg_flags & flagbit;
- if ((bits == flagbit))
+ if (bits == flagbit)
return bits;
mtx_enter(&pg->mdpage.pv_mtx);