1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00

Remove redundant suser() check.

This commit is contained in:
Don Lewis 2004-03-15 06:36:55 +00:00
parent c83afe7be9
commit be4c5ad025
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=127006

View File

@ -1060,10 +1060,6 @@ munlock(td, uap)
if (end <= start)
return (EINVAL);
error = suser(td);
if (error)
return (error);
error = vm_map_unwire(&td->td_proc->p_vmspace->vm_map, start, end,
VM_MAP_WIRE_USER|VM_MAP_WIRE_NOHOLES);
return (error == KERN_SUCCESS ? 0 : ENOMEM);