Simplify the expression, by removing redundand calculation.
Noted by: "O'Connor, Daniel" <Daniel.O'Connor@emc.com> MFC after: 3 days
This commit is contained in:
parent
18ae4fcc47
commit
d3a3b8b038
@ -2147,7 +2147,7 @@ kern_proc_vmmap_resident(vm_map_t map, vm_map_entry_t entry,
|
||||
obj = entry->object.vm_object;
|
||||
addr = entry->start;
|
||||
m_adv = NULL;
|
||||
pi = OFF_TO_IDX(entry->offset + addr - entry->start);
|
||||
pi = OFF_TO_IDX(entry->offset);
|
||||
for (; addr < entry->end; addr += IDX_TO_OFF(pi_adv), pi += pi_adv) {
|
||||
if (m_adv != NULL) {
|
||||
m = m_adv;
|
||||
|
Loading…
x
Reference in New Issue
Block a user