Module Name:    src
Committed By:   ozaki-r
Date:           Sat Feb 24 07:38:05 UTC 2018

Modified Files:
        src/sys/netinet6: nd6_nbr.c

Log Message:
Use KASSERT for checking a programming error


To generate a diff of this commit:
cvs rdiff -u -r1.145 -r1.146 src/sys/netinet6/nd6_nbr.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/netinet6/nd6_nbr.c
diff -u src/sys/netinet6/nd6_nbr.c:1.145 src/sys/netinet6/nd6_nbr.c:1.146
--- src/sys/netinet6/nd6_nbr.c:1.145	Fri Feb  2 10:49:01 2018
+++ src/sys/netinet6/nd6_nbr.c	Sat Feb 24 07:38:05 2018
@@ -1,4 +1,4 @@
-/*	$NetBSD: nd6_nbr.c,v 1.145 2018/02/02 10:49:01 maxv Exp $	*/
+/*	$NetBSD: nd6_nbr.c,v 1.146 2018/02/24 07:38:05 ozaki-r Exp $	*/
 /*	$KAME: nd6_nbr.c,v 1.61 2001/02/10 16:06:14 jinmei Exp $	*/
 
 /*
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nd6_nbr.c,v 1.145 2018/02/02 10:49:01 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nd6_nbr.c,v 1.146 2018/02/24 07:38:05 ozaki-r Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -1484,8 +1484,7 @@ nd6_dad_na_input(struct ifaddr *ifa)
 {
 	struct dadq *dp;
 
-	if (ifa == NULL)
-		panic("ifa == NULL in nd6_dad_na_input");
+	KASSERT(ifa != NULL);
 
 	mutex_enter(&nd6_dad_lock);
 	dp = nd6_dad_find(ifa);

Reply via email to