mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-18 10:35:55 +00:00
Eliminate an unnecessary `if' statement.
This commit is contained in:
parent
ff7668079f
commit
91d0b4d615
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=163677
@ -481,7 +481,8 @@ umtx_key_get(void *addr, int type, int share, struct umtx_key *key)
|
||||
key->shared = 0;
|
||||
key->info.private.vs = td->td_proc->p_vmspace;
|
||||
key->info.private.addr = (uintptr_t)addr;
|
||||
} else if (share == PROCESS_SHARE || share == AUTO_SHARE) {
|
||||
} else {
|
||||
MPASS(share == PROCESS_SHARE || share == AUTO_SHARE);
|
||||
map = &td->td_proc->p_vmspace->vm_map;
|
||||
if (vm_map_lookup(&map, (vm_offset_t)addr, VM_PROT_WRITE,
|
||||
&entry, &key->info.shared.object, &pindex, &prot,
|
||||
|
Loading…
Reference in New Issue
Block a user