Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/miscfs/procfs Remove pointless check against PID_MAX. L...



details:   https://anonhg.NetBSD.org/src/rev/dc665878eaac
branches:  trunk
changeset: 545272:dc665878eaac
user:      dsl <dsl%NetBSD.org@localhost>
date:      Sat Apr 05 23:32:52 2003 +0000

description:
Remove pointless check against PID_MAX.  Let pfind() do the validation.
(The new pid allocation code may decide to allocate pids above PID_MAX.)

diffstat:

 sys/miscfs/procfs/procfs_vnops.c |  6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diffs (27 lines):

diff -r 11a13e84b738 -r dc665878eaac sys/miscfs/procfs/procfs_vnops.c
--- a/sys/miscfs/procfs/procfs_vnops.c  Sat Apr 05 23:27:14 2003 +0000
+++ b/sys/miscfs/procfs/procfs_vnops.c  Sat Apr 05 23:32:52 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: procfs_vnops.c,v 1.94 2003/02/25 21:00:32 jrf Exp $    */
+/*     $NetBSD: procfs_vnops.c,v 1.95 2003/04/05 23:32:52 dsl Exp $    */
 
 /*
  * Copyright (c) 1993 Jan-Simon Pendry
@@ -44,7 +44,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: procfs_vnops.c,v 1.94 2003/02/25 21:00:32 jrf Exp $");
+__KERNEL_RCSID(0, "$NetBSD: procfs_vnops.c,v 1.95 2003/04/05 23:32:52 dsl Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -814,8 +814,6 @@
                }
 
                pid = (pid_t)atoi(pname, cnp->cn_namelen);
-               if (pid > PID_MAX)
-                       break;
 
                p = PFIND(pid);
                if (p == NULL)



Home | Main Index | Thread Index | Old Index