svn commit: r349741 - head/sys/vm
Doug Moore
dougm at FreeBSD.org
Thu Jul 4 18:28:50 UTC 2019
Author: dougm
Date: Thu Jul 4 18:28:49 2019
New Revision: 349741
URL: https://svnweb.freebsd.org/changeset/base/349741
Log:
Drop a temp variable from vm_map_insert, with no effect on the
resulting amd64 machine code.
Reviewed by: alc
Approved by: kib, markj (mentors, implicit)
Differential Revision: https://reviews.freebsd.org/D20849
Modified:
head/sys/vm/vm_map.c
Modified: head/sys/vm/vm_map.c
==============================================================================
--- head/sys/vm/vm_map.c Thu Jul 4 18:21:01 2019 (r349740)
+++ head/sys/vm/vm_map.c Thu Jul 4 18:28:49 2019 (r349741)
@@ -1422,7 +1422,7 @@ int
vm_map_insert(vm_map_t map, vm_object_t object, vm_ooffset_t offset,
vm_offset_t start, vm_offset_t end, vm_prot_t prot, vm_prot_t max, int cow)
{
- vm_map_entry_t new_entry, prev_entry, temp_entry;
+ vm_map_entry_t new_entry, prev_entry;
struct ucred *cred;
vm_eflags_t protoeflags;
vm_inherit_t inheritance;
@@ -1447,10 +1447,8 @@ vm_map_insert(vm_map_t map, vm_object_t object, vm_oof
* Find the entry prior to the proposed starting address; if it's part
* of an existing entry, this range is bogus.
*/
- if (vm_map_lookup_entry(map, start, &temp_entry))
+ if (vm_map_lookup_entry(map, start, &prev_entry))
return (KERN_NO_SPACE);
-
- prev_entry = temp_entry;
/*
* Assert that the next entry doesn't overlap the end point.
More information about the svn-src-all
mailing list