Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet6 Tweak a condition; we don't need to care ifacou...
details: https://anonhg.NetBSD.org/src/rev/8c57d9057e82
branches: trunk
changeset: 357725:8c57d9057e82
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Thu Nov 23 07:06:14 2017 +0000
description:
Tweak a condition; we don't need to care ifacount to be negative
diffstat:
sys/netinet6/in6.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r e3d453cf957b -r 8c57d9057e82 sys/netinet6/in6.c
--- a/sys/netinet6/in6.c Thu Nov 23 07:05:02 2017 +0000
+++ b/sys/netinet6/in6.c Thu Nov 23 07:06:14 2017 +0000
@@ -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 @@
ia->ia_addr = *sin6;
- if (ifacount <= 0 &&
+ if (ifacount == 0 &&
(error = if_addr_init(ifp, &ia->ia_ifa, true)) != 0) {
splx(s);
return error;
Home |
Main Index |
Thread Index |
Old Index