Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Feb 2015 22:10:15 +0000 (UTC)
From:      Dmitry Chagin <dchagin@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r279113 - user/dchagin/lemul/sys/fs/procfs
Message-ID:  <201502212210.t1LMAFUe001499@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dchagin
Date: Sat Feb 21 22:10:14 2015
New Revision: 279113
URL: https://svnweb.freebsd.org/changeset/base/279113

Log:
  Remove extra proc visibility check as it has been done
  by pn_vis which is pointed to the procfs_candebug().

Modified:
  user/dchagin/lemul/sys/fs/procfs/procfs_mem.c

Modified: user/dchagin/lemul/sys/fs/procfs/procfs_mem.c
==============================================================================
--- user/dchagin/lemul/sys/fs/procfs/procfs_mem.c	Sat Feb 21 21:59:04 2015	(r279112)
+++ user/dchagin/lemul/sys/fs/procfs/procfs_mem.c	Sat Feb 21 22:10:14 2015	(r279113)
@@ -56,16 +56,9 @@
 int
 procfs_doprocmem(PFS_FILL_ARGS)
 {
-	int error;
 
 	if (uio->uio_resid == 0)
 		return (0);
 
-	PROC_LOCK(p);
-	error = p_candebug(td, p);
-	PROC_UNLOCK(p);
-	if (error == 0)
-		error = proc_rwmem(p, uio);
-
-	return (error);
+	return (proc_rwmem(p, uio));
 }



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