Replace a 'goto' with an 'else' in vm_map_wire_locked.
Reviewed by: alc Approved by: markj (mentor) Differential Revision: https://reviews.freebsd.org/D20855
This commit is contained in:
parent
9a0cdf9440
commit
b71f9b0de6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=349744
@ -3280,10 +3280,9 @@ vm_map_wire_locked(vm_map_t map, vm_offset_t start, vm_offset_t end, int flags)
|
||||
continue;
|
||||
}
|
||||
|
||||
if ((entry->eflags & MAP_ENTRY_WIRE_SKIPPED) != 0)
|
||||
goto next_entry_done;
|
||||
|
||||
if (rv == KERN_SUCCESS) {
|
||||
if ((entry->eflags & MAP_ENTRY_WIRE_SKIPPED) != 0) {
|
||||
/* do nothing */
|
||||
} else if (rv == KERN_SUCCESS) {
|
||||
if (user_wire)
|
||||
entry->eflags |= MAP_ENTRY_USER_WIRED;
|
||||
} else if (entry->wired_count == -1) {
|
||||
@ -3306,7 +3305,6 @@ vm_map_wire_locked(vm_map_t map, vm_offset_t start, vm_offset_t end, int flags)
|
||||
} else
|
||||
entry->wired_count--;
|
||||
}
|
||||
next_entry_done:
|
||||
KASSERT((entry->eflags & MAP_ENTRY_IN_TRANSITION) != 0,
|
||||
("vm_map_wire: in-transition flag missing %p", entry));
|
||||
KASSERT(entry->wiring_thread == curthread,
|
||||
|
Loading…
Reference in New Issue
Block a user