summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2019-09-03 14:34:42 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2019-09-03 14:34:42 +0000
commit04a70f709708b4260894164e5f658ace00408e39 (patch)
treea6e3c907fb227ef888e7c9d4d32b303eb5c46a7f /sys
parent0ddce0ae89b8662748b4054580c1cf7d7b0b6879 (diff)
some cleanup for clang; ok kettenis
Diffstat (limited to 'sys')
-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);