mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-31 16:57:10 +00:00
Remove unnecessary check for curthread == NULL.
This commit is contained in:
parent
490ec740c8
commit
7fde238f04
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=134331
@ -2110,7 +2110,7 @@ pmap_remove_pages(pmap, sva, eva)
|
||||
pv_entry_t pv, npv;
|
||||
|
||||
#ifdef PMAP_REMOVE_PAGES_CURPROC_ONLY
|
||||
if (!curthread || (pmap != vmspace_pmap(curthread->td_proc->p_vmspace))) {
|
||||
if (pmap != vmspace_pmap(curthread->td_proc->p_vmspace)) {
|
||||
printf("warning: pmap_remove_pages called with non-current pmap\n");
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user