Source-Changes-HG archive

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

[src/trunk]: src/sys/kern remove useless KASSERT.



details:   https://anonhg.NetBSD.org/src/rev/38fe990d0f1b
branches:  trunk
changeset: 359051:38fe990d0f1b
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Jan 27 00:00:26 2018 +0000

description:
remove useless KASSERT.

diffstat:

 sys/kern/kern_sysctl.c |  6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diffs (27 lines):

diff -r a5bbb88480b5 -r 38fe990d0f1b sys/kern/kern_sysctl.c
--- a/sys/kern/kern_sysctl.c    Fri Jan 26 23:36:01 2018 +0000
+++ b/sys/kern/kern_sysctl.c    Sat Jan 27 00:00:26 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_sysctl.c,v 1.260 2018/01/26 22:54:33 pgoyette Exp $       */
+/*     $NetBSD: kern_sysctl.c,v 1.261 2018/01/27 00:00:26 christos Exp $       */
 
 /*-
  * Copyright (c) 2003, 2007, 2008 The NetBSD Foundation, Inc.
@@ -68,7 +68,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_sysctl.c,v 1.260 2018/01/26 22:54:33 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_sysctl.c,v 1.261 2018/01/27 00:00:26 christos Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_defcorename.h"
@@ -2415,8 +2415,6 @@
        const struct sysctlnode *pnode;
        struct sysctllog *log;
 
-       KASSERT(namelen < CTL_MAXNAME);
-
        if (node->sysctl_flags & CTLFLAG_PERMANENT)
                return (0);
 



Home | Main Index | Thread Index | Old Index