Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet6 Remove unnecessary NULL check
details: https://anonhg.NetBSD.org/src/rev/1add76cf7079
branches: trunk
changeset: 352065:1add76cf7079
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Tue Mar 14 04:21:38 2017 +0000
description:
Remove unnecessary NULL check
diffstat:
sys/netinet6/nd6_rtr.c | 9 ++-------
1 files changed, 2 insertions(+), 7 deletions(-)
diffs (30 lines):
diff -r 7491bfea8315 -r 1add76cf7079 sys/netinet6/nd6_rtr.c
--- a/sys/netinet6/nd6_rtr.c Tue Mar 14 04:07:43 2017 +0000
+++ b/sys/netinet6/nd6_rtr.c Tue Mar 14 04:21:38 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nd6_rtr.c,v 1.134 2017/03/03 06:27:20 msaitoh Exp $ */
+/* $NetBSD: nd6_rtr.c,v 1.135 2017/03/14 04:21:38 ozaki-r Exp $ */
/* $KAME: nd6_rtr.c,v 1.95 2001/02/07 08:09:47 itojun Exp $ */
/*
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nd6_rtr.c,v 1.134 2017/03/03 06:27:20 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nd6_rtr.c,v 1.135 2017/03/14 04:21:38 ozaki-r Exp $");
#ifdef _KERNEL_OPT
#include "opt_net_mpsafe.h"
@@ -581,11 +581,6 @@
} def, mask, gw;
int error;
-#ifdef DIAGNOSTIC
- if (dr == NULL)
- panic("dr == NULL in defrouter_delreq");
-#endif
-
memset(&def, 0, sizeof(def));
memset(&mask, 0, sizeof(mask));
memset(&gw, 0, sizeof(gw)); /* for safety */
Home |
Main Index |
Thread Index |
Old Index