Module Name:    src
Committed By:   christos
Date:           Sat Apr  7 05:38:49 UTC 2012

Modified Files:
        src/sys/kern: init_sysctl.c

Log Message:
remove bogus check.


To generate a diff of this commit:
cvs rdiff -u -r1.188 -r1.189 src/sys/kern/init_sysctl.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/kern/init_sysctl.c
diff -u src/sys/kern/init_sysctl.c:1.188 src/sys/kern/init_sysctl.c:1.189
--- src/sys/kern/init_sysctl.c:1.188	Sat Mar 10 16:51:59 2012
+++ src/sys/kern/init_sysctl.c	Sat Apr  7 01:38:49 2012
@@ -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 @@ sysctl_kern_drivers(SYSCTLFN_ARGS)
 	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) {

Reply via email to