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);
        }
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to