Module Name:    src
Committed By:   christos
Date:           Thu Mar 30 20:21:00 UTC 2017

Modified Files:
        src/sys/miscfs/procfs: procfs_auxv.c

Log Message:
remove comment.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/miscfs/procfs/procfs_auxv.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/miscfs/procfs/procfs_auxv.c
diff -u src/sys/miscfs/procfs/procfs_auxv.c:1.1 src/sys/miscfs/procfs/procfs_auxv.c:1.2
--- src/sys/miscfs/procfs/procfs_auxv.c:1.1	Thu Mar 30 16:16:29 2017
+++ src/sys/miscfs/procfs/procfs_auxv.c	Thu Mar 30 16:21:00 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: procfs_auxv.c,v 1.1 2017/03/30 20:16:29 christos Exp $	*/
+/*	$NetBSD: procfs_auxv.c,v 1.2 2017/03/30 20:21:00 christos Exp $	*/
 
 /*-
  * Copyright (c) 2017 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: procfs_auxv.c,v 1.1 2017/03/30 20:16:29 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: procfs_auxv.c,v 1.2 2017/03/30 20:21:00 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -52,11 +52,6 @@ procfs_doauxv(struct lwp *curl, struct p
 	if ((error = proc_getauxv(p, &buffer, &bufsize)) != 0)
 		return error;
 
-	/*
-	 * We support reading from an offset, because linux does.
-	 * The map could have changed between the two reads, and
-	 * that could result in junk, but typically it does not.
-	 */
 	if (uio->uio_offset < bufsize)
 		error = uiomove((char *)buffer + uio->uio_offset,
 		    bufsize - uio->uio_offset, uio);

Reply via email to