Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet6 CID 1363345: remove unreachable code and cleanu...
details: https://anonhg.NetBSD.org/src/rev/f691238c3b01
branches: trunk
changeset: 816481:f691238c3b01
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Fri Jul 08 06:18:29 2016 +0000
description:
CID 1363345: remove unreachable code and cleanup returns
diffstat:
sys/netinet6/in6.c | 16 ++++------------
1 files changed, 4 insertions(+), 12 deletions(-)
diffs (40 lines):
diff -r 446d80d23224 -r f691238c3b01 sys/netinet6/in6.c
--- a/sys/netinet6/in6.c Fri Jul 08 06:15:33 2016 +0000
+++ b/sys/netinet6/in6.c Fri Jul 08 06:18:29 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: in6.c,v 1.207 2016/07/07 09:32:03 ozaki-r Exp $ */
+/* $NetBSD: in6.c,v 1.208 2016/07/08 06:18:29 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.207 2016/07/07 09:32:03 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: in6.c,v 1.208 2016/07/08 06:18:29 ozaki-r Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -1283,19 +1283,11 @@
nd6_dad_start(&ia->ia_ifa, dad_delay + 1);
}
- return error;
-
- /*
- * XXX: if a change of an existing address failed, keep the entry
- * anyway.
- */
- if (hostIsNew)
- in6_unlink_ifa(ia, ifp);
- exit:
- return error;
+ return 0;
cleanup:
in6_purgeaddr(&ia->ia_ifa);
+ exit:
return error;
}
Home |
Main Index |
Thread Index |
Old Index