Date: Wed, 2 Jan 2019 16:33:17 +0000 (UTC) From: Mark Johnston <markj@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org Subject: svn commit: r342692 - stable/12/sys/riscv/riscv Message-ID: <201901021633.x02GXHOl087364@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: markj Date: Wed Jan 2 16:33:17 2019 New Revision: 342692 URL: https://svnweb.freebsd.org/changeset/base/342692 Log: MFC r342098: Assume that pmap_l1() will return a PTE. Modified: stable/12/sys/riscv/riscv/pmap.c Directory Properties: stable/12/ (props changed) Modified: stable/12/sys/riscv/riscv/pmap.c ============================================================================== --- stable/12/sys/riscv/riscv/pmap.c Wed Jan 2 16:28:56 2019 (r342691) +++ stable/12/sys/riscv/riscv/pmap.c Wed Jan 2 16:33:17 2019 (r342692) @@ -316,8 +316,6 @@ pmap_l2(pmap_t pmap, vm_offset_t va) pd_entry_t *l1; l1 = pmap_l1(pmap, va); - if (l1 == NULL) - return (NULL); if ((pmap_load(l1) & PTE_V) == 0) return (NULL); if ((pmap_load(l1) & PTE_RX) != 0)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201901021633.x02GXHOl087364>