Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet6 Get rid of unnecessary NULL check



details:   https://anonhg.NetBSD.org/src/rev/fe18c357949d
branches:  trunk
changeset: 345314:fe18c357949d
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Wed May 18 09:32:05 2016 +0000

description:
Get rid of unnecessary NULL check

It's already checked just some lines above.

diffstat:

 sys/netinet6/in6_src.c |  8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diffs (29 lines):

diff -r ab6ee735cc42 -r fe18c357949d sys/netinet6/in6_src.c
--- a/sys/netinet6/in6_src.c    Wed May 18 09:12:04 2016 +0000
+++ b/sys/netinet6/in6_src.c    Wed May 18 09:32:05 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: in6_src.c,v 1.59 2015/12/12 23:34:25 christos Exp $    */
+/*     $NetBSD: in6_src.c,v 1.60 2016/05/18 09:32:05 ozaki-r Exp $     */
 /*     $KAME: in6_src.c,v 1.159 2005/10/19 01:40:32 t-momose Exp $     */
 
 /*
@@ -66,7 +66,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: in6_src.c,v 1.59 2015/12/12 23:34:25 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: in6_src.c,v 1.60 2016/05/18 09:32:05 ozaki-r Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -279,10 +279,6 @@
        }
 #endif /* MIP6 && NMIP > 0 */
 
-#ifdef DIAGNOSTIC
-       if (ifp == NULL)        /* this should not happen */
-               panic("in6_selectsrc: NULL ifp");
-#endif
        *errorp = in6_setscope(&dst, ifp, &odstzone);
        if (*errorp != 0)
                return (NULL);



Home | Main Index | Thread Index | Old Index