Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Jul 2014 01:46:32 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r269205 - head/sys/kern
Message-ID:  <201407290146.s6T1kWAl046369@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Tue Jul 29 01:46:31 2014
New Revision: 269205
URL: http://svnweb.freebsd.org/changeset/base/269205

Log:
  Simplify the expression, by removing redundand calculation.
  
  Noted by:	"O'Connor, Daniel" <Daniel.O'Connor@emc.com>
  MFC after:	3 days

Modified:
  head/sys/kern/kern_proc.c

Modified: head/sys/kern/kern_proc.c
==============================================================================
--- head/sys/kern/kern_proc.c	Tue Jul 29 00:16:33 2014	(r269204)
+++ head/sys/kern/kern_proc.c	Tue Jul 29 01:46:31 2014	(r269205)
@@ -2147,7 +2147,7 @@ kern_proc_vmmap_resident(vm_map_t map, v
 	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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201407290146.s6T1kWAl046369>