svn commit: r343529 - head/sys/riscv/riscv

Mark Johnston markj at FreeBSD.org
Mon Jan 28 16:23:57 UTC 2019


Author: markj
Date: Mon Jan 28 16:23:56 2019
New Revision: 343529
URL: https://svnweb.freebsd.org/changeset/base/343529

Log:
  Remove a redundant test.
  
  The existence of a PV entry for a mapping guarantees that the mapping
  exists, so we should not need to test for that.
  
  Reviewed by:	kib
  MFC after:	3 days
  Sponsored by:	The FreeBSD Foundation
  Differential Revision:	https://reviews.freebsd.org/D18866

Modified:
  head/sys/riscv/riscv/pmap.c

Modified: head/sys/riscv/riscv/pmap.c
==============================================================================
--- head/sys/riscv/riscv/pmap.c	Mon Jan 28 16:18:17 2019	(r343528)
+++ head/sys/riscv/riscv/pmap.c	Mon Jan 28 16:23:56 2019	(r343529)
@@ -2655,7 +2655,7 @@ restart:
 			}
 		}
 		l3 = pmap_l3(pmap, pv->pv_va);
-		if (l3 != NULL && (pmap_load(l3) & PTE_SW_WIRED) != 0)
+		if ((pmap_load(l3) & PTE_SW_WIRED) != 0)
 			count++;
 		PMAP_UNLOCK(pmap);
 	}


More information about the svn-src-head mailing list