Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Aug 2014 04:05:13 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r269367 - stable/10/sys/kern
Message-ID:  <201408010405.s7145DHx032884@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Fri Aug  1 04:05:13 2014
New Revision: 269367
URL: http://svnweb.freebsd.org/changeset/base/269367

Log:
  MFC r269205:
  Simplify the expression.

Modified:
  stable/10/sys/kern/kern_proc.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/kern/kern_proc.c
==============================================================================
--- stable/10/sys/kern/kern_proc.c	Fri Aug  1 01:53:39 2014	(r269366)
+++ stable/10/sys/kern/kern_proc.c	Fri Aug  1 04:05:13 2014	(r269367)
@@ -2148,7 +2148,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?201408010405.s7145DHx032884>