Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/netinet6 Drop impossible check.



details:   https://anonhg.NetBSD.org/src/rev/8d0fd5cd3f5a
branches:  trunk
changeset: 333758:8d0fd5cd3f5a
user:      joerg <joerg%NetBSD.org@localhost>
date:      Sun Nov 16 00:04:06 2014 +0000

description:
Drop impossible check.

diffstat:

 sys/netinet6/scope6.c |  7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diffs (28 lines):

diff -r a3ab872b4222 -r 8d0fd5cd3f5a sys/netinet6/scope6.c
--- a/sys/netinet6/scope6.c     Sat Nov 15 21:07:01 2014 +0000
+++ b/sys/netinet6/scope6.c     Sun Nov 16 00:04:06 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: scope6.c,v 1.9 2014/05/17 21:26:20 rmind Exp $ */
+/*     $NetBSD: scope6.c,v 1.10 2014/11/16 00:04:06 joerg Exp $        */
 /*     $KAME$  */
 
 /*-
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: scope6.c,v 1.9 2014/05/17 21:26:20 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: scope6.c,v 1.10 2014/11/16 00:04:06 joerg Exp $");
 
 #include <sys/param.h>
 #include <sys/malloc.h>
@@ -411,9 +411,6 @@
 
        scope = in6_addrscope(in6);
 
-       if (!sid->s6id_list)
-               return 0;
-
        switch (scope) {
        case IPV6_ADDR_SCOPE_INTFACELOCAL: /* should be interface index */
                zoneid = sid->s6id_list[IPV6_ADDR_SCOPE_INTFACELOCAL];



Home | Main Index | Thread Index | Old Index