Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Jan 2019 16:23:56 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r343529 - head/sys/riscv/riscv
Message-ID:  <201901281623.x0SGNuYP084389@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201901281623.x0SGNuYP084389>