diff options
author | 2015-08-11 13:15:36 +0000 | |
---|---|---|
committer | 2015-08-11 13:15:36 +0000 | |
commit | 1c89c4b11d3d567666bb03028c8caedc4b1ee293 (patch) | |
tree | 8691efb9aff4de57ccaf0740035a6ec9689d4580 | |
parent | kurotoshiko -> kuroutoshikou (diff) | |
download | wireguard-openbsd-1c89c4b11d3d567666bb03028c8caedc4b1ee293.tar.xz wireguard-openbsd-1c89c4b11d3d567666bb03028c8caedc4b1ee293.zip |
Remove unnecessary pmap == NULL checks in mips64 pmap.
ok miod@
-rw-r--r-- | sys/arch/mips64/mips64/pmap.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/arch/mips64/mips64/pmap.c b/sys/arch/mips64/mips64/pmap.c index 2369183f95d..83722d2a146 100644 --- a/sys/arch/mips64/mips64/pmap.c +++ b/sys/arch/mips64/mips64/pmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.c,v 1.80 2015/07/30 17:02:17 visa Exp $ */ +/* $OpenBSD: pmap.c,v 1.81 2015/08/11 13:15:36 visa Exp $ */ /* * Copyright (c) 2001-2004 Opsycon AB (www.opsycon.se / www.opsycon.com) @@ -595,8 +595,7 @@ pmap_reference(pmap_t pmap) DPRINTF(PDB_FOLLOW, ("pmap_reference(%p)\n", pmap)); - if (pmap) - pmap->pm_count++; + pmap->pm_count++; } /* @@ -646,9 +645,6 @@ pmap_remove(pmap_t pmap, vaddr_t sva, vaddr_t eva) stat_count(remove_stats.calls); - if (pmap == NULL) - return; - KERNEL_LOCK(); if (pmap == pmap_kernel()) { /* remove entries from kernel pmap */ |