diff options
author | Klemens Nanni <kn@cvs.openbsd.org> | 2023-04-21 00:41:14 +0000 |
---|---|---|
committer | Klemens Nanni <kn@cvs.openbsd.org> | 2023-04-21 00:41:14 +0000 |
commit | 52200119ff0a9aff3ff2f6615e5681536be6d4ba (patch) | |
tree | 63c8e04a6c6a6ad2dc497054b321b56209dd17e6 /sys/netinet6/in6.c | |
parent | c792e917cf6ff25c747a9cf9949a71f7f9fcd49d (diff) |
Drop error variable and return directly; OK mvs tb
Diffstat (limited to 'sys/netinet6/in6.c')
-rw-r--r-- | sys/netinet6/in6.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/sys/netinet6/in6.c b/sys/netinet6/in6.c index ea328b1b782..3651a5f23f6 100644 --- a/sys/netinet6/in6.c +++ b/sys/netinet6/in6.c @@ -1,4 +1,4 @@ -/* $OpenBSD: in6.c,v 1.260 2023/04/19 20:03:52 kn Exp $ */ +/* $OpenBSD: in6.c,v 1.261 2023/04/21 00:41:13 kn Exp $ */ /* $KAME: in6.c,v 1.372 2004/06/14 08:14:21 itojun Exp $ */ /* @@ -197,7 +197,6 @@ int in6_control(struct socket *so, u_long cmd, caddr_t data, struct ifnet *ifp) { int privileged; - int error; privileged = 0; if ((so->so_state & SS_PRIV) != 0) @@ -207,15 +206,11 @@ in6_control(struct socket *so, u_long cmd, caddr_t data, struct ifnet *ifp) #ifdef MROUTING case SIOCGETSGCNT_IN6: case SIOCGETMIFCNT_IN6: - error = mrt6_ioctl(so, cmd, data); - break; + return mrt6_ioctl(so, cmd, data); #endif /* MROUTING */ default: - error = in6_ioctl(cmd, data, ifp, privileged); - break; + return in6_ioctl(cmd, data, ifp, privileged); } - - return error; } int |