Module Name: src
Committed By: ozaki-r
Date: Thu Nov 23 07:06:14 UTC 2017
Modified Files:
src/sys/netinet6: in6.c
Log Message:
Tweak a condition; we don't need to care ifacount to be negative
To generate a diff of this commit:
cvs rdiff -u -r1.252 -r1.253 src/sys/netinet6/in6.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/in6.c
diff -u src/sys/netinet6/in6.c:1.252 src/sys/netinet6/in6.c:1.253
--- src/sys/netinet6/in6.c:1.252 Thu Nov 23 07:05:02 2017
+++ src/sys/netinet6/in6.c Thu Nov 23 07:06:14 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: in6.c,v 1.252 2017/11/23 07:05:02 ozaki-r Exp $ */
+/* $NetBSD: in6.c,v 1.253 2017/11/23 07:06:14 ozaki-r Exp $ */
/* $KAME: in6.c,v 1.198 2001/07/18 09:12:38 itojun Exp $ */
/*
@@ -62,7 +62,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: in6.c,v 1.252 2017/11/23 07:05:02 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: in6.c,v 1.253 2017/11/23 07:06:14 ozaki-r Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -1771,7 +1771,7 @@ in6_ifinit(struct ifnet *ifp, struct in6
ia->ia_addr = *sin6;
- if (ifacount <= 0 &&
+ if (ifacount == 0 &&
(error = if_addr_init(ifp, &ia->ia_ifa, true)) != 0) {
splx(s);
return error;