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 goto because there is no cle...
details: https://anonhg.NetBSD.org/src/rev/e3d453cf957b
branches: trunk
changeset: 357724:e3d453cf957b
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Thu Nov 23 07:05:02 2017 +0000
description:
Remove unnecessary goto because there is no cleanup code to share (NFC)
diffstat:
sys/netinet6/in6.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diffs (44 lines):
diff -r 7a18b02081cf -r e3d453cf957b sys/netinet6/in6.c
--- a/sys/netinet6/in6.c Thu Nov 23 06:22:12 2017 +0000
+++ b/sys/netinet6/in6.c Thu Nov 23 07:05:02 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: in6.c,v 1.251 2017/11/17 07:37:12 ozaki-r Exp $ */
+/* $NetBSD: in6.c,v 1.252 2017/11/23 07:05:02 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.251 2017/11/17 07:37:12 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: in6.c,v 1.252 2017/11/23 07:05:02 ozaki-r Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -1187,7 +1187,7 @@
error = EINVAL;
if (hostIsNew)
free(ia, M_IFADDR);
- goto exit;
+ return error;
}
if (!IN6_ARE_ADDR_EQUAL(&ia->ia_prefixmask.sin6_addr,
@@ -1263,7 +1263,7 @@
if (error != 0) {
if (hostIsNew)
free(ia, M_IFADDR);
- goto exit;
+ return error;
}
/*
@@ -1357,7 +1357,6 @@
cleanup:
in6_purgeaddr(&ia->ia_ifa);
- exit:
return error;
}
Home |
Main Index |
Thread Index |
Old Index