Source-Changes-HG archive

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

[src/trunk]: src/sys/kern remove bogus check.



details:   https://anonhg.NetBSD.org/src/rev/c58dc85df537
branches:  trunk
changeset: 778641:c58dc85df537
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Apr 07 05:38:49 2012 +0000

description:
remove bogus check.

diffstat:

 sys/kern/init_sysctl.c |  7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diffs (28 lines):

diff -r dde966e0ee52 -r c58dc85df537 sys/kern/init_sysctl.c
--- a/sys/kern/init_sysctl.c    Sat Apr 07 05:38:07 2012 +0000
+++ b/sys/kern/init_sysctl.c    Sat Apr 07 05:38:49 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: init_sysctl.c,v 1.188 2012/03/10 21:51:59 joerg Exp $ */
+/*     $NetBSD: init_sysctl.c,v 1.189 2012/04/07 05:38:49 christos Exp $ */
 
 /*-
  * Copyright (c) 2003, 2007, 2008, 2009 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: init_sysctl.c,v 1.188 2012/03/10 21:51:59 joerg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: init_sysctl.c,v 1.189 2012/04/07 05:38:49 christos Exp $");
 
 #include "opt_sysv.h"
 #include "opt_compat_netbsd.h"
@@ -1640,9 +1640,6 @@
        extern struct devsw_conv *devsw_conv;
        extern int max_devsw_convs;
 
-       if (newp != NULL || namelen != 0)
-               return (EINVAL);
-
        start = where = oldp;
        buflen = *oldlenp;
        if (where == NULL) {



Home | Main Index | Thread Index | Old Index