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:
Konstantin Belousov 2014-07-29 01:46:31 +00:00
parent 18ae4fcc47
commit d3a3b8b038

View File

@ -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;