Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet6 Use KASSERT for checking a programming error
details: https://anonhg.NetBSD.org/src/rev/0f6f8589252d
branches: trunk
changeset: 359747:0f6f8589252d
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Sat Feb 24 07:38:05 2018 +0000
description:
Use KASSERT for checking a programming error
diffstat:
sys/netinet6/nd6_nbr.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (28 lines):
diff -r 7fbd806f43a0 -r 0f6f8589252d sys/netinet6/nd6_nbr.c
--- a/sys/netinet6/nd6_nbr.c Sat Feb 24 07:37:08 2018 +0000
+++ b/sys/netinet6/nd6_nbr.c Sat Feb 24 07:38:05 2018 +0000
@@ -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 @@
{
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);
Home |
Main Index |
Thread Index |
Old Index