Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet6 no need to check NULL mbuf, as we touch it alre...



details:   https://anonhg.NetBSD.org/src/rev/bb49d11d7c85
branches:  trunk
changeset: 534620:bb49d11d7c85
user:      itojun <itojun%NetBSD.org@localhost>
date:      Tue Jul 30 23:27:15 2002 +0000

description:
no need to check NULL mbuf, as we touch it already.
From: tedu <grendel%zeitbombe.org@localhost>

diffstat:

 sys/netinet6/icmp6.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 0c66ef5daceb -r bb49d11d7c85 sys/netinet6/icmp6.c
--- a/sys/netinet6/icmp6.c      Tue Jul 30 23:24:21 2002 +0000
+++ b/sys/netinet6/icmp6.c      Tue Jul 30 23:27:15 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: icmp6.c,v 1.84 2002/07/10 05:05:01 itojun Exp $        */
+/*     $NetBSD: icmp6.c,v 1.85 2002/07/30 23:27:15 itojun Exp $        */
 /*     $KAME: icmp6.c,v 1.217 2001/06/20 15:03:29 jinmei Exp $ */
 
 /*
@@ -66,7 +66,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: icmp6.c,v 1.84 2002/07/10 05:05:01 itojun Exp $");
+__KERNEL_RCSID(0, "$NetBSD: icmp6.c,v 1.85 2002/07/30 23:27:15 itojun Exp $");
 
 #include "opt_inet.h"
 #include "opt_ipsec.h"
@@ -2277,7 +2277,7 @@
        struct in6_addr reddst6;
        union nd_opts ndopts;
 
-       if (!m || !ifp)
+       if (!ifp)
                return;
 
        /* XXX if we are router, we don't update route by icmp6 redirect */



Home | Main Index | Thread Index | Old Index