Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet Remove null check on ip, it can't be null. (Conf...



details:   https://anonhg.NetBSD.org/src/rev/c5a24cbce27a
branches:  trunk
changeset: 829632:c5a24cbce27a
user:      maxv <maxv%NetBSD.org@localhost>
date:      Wed Feb 07 08:12:25 2018 +0000

description:
Remove null check on ip, it can't be null. (Confuses code scanners.)

diffstat:

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

diffs (27 lines):

diff -r 09f147a94aa6 -r c5a24cbce27a sys/netinet/ip_input.c
--- a/sys/netinet/ip_input.c    Wed Feb 07 06:21:23 2018 +0000
+++ b/sys/netinet/ip_input.c    Wed Feb 07 08:12:25 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ip_input.c,v 1.373 2018/02/06 06:36:40 maxv Exp $      */
+/*     $NetBSD: ip_input.c,v 1.374 2018/02/07 08:12:25 maxv Exp $      */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -91,7 +91,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ip_input.c,v 1.373 2018/02/06 06:36:40 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip_input.c,v 1.374 2018/02/07 08:12:25 maxv Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -782,7 +782,7 @@
         * Switch out to protocol's input routine.
         */
 #if IFA_STATS
-       if (ia && ip) {
+       if (ia) {
                struct in_ifaddr *_ia;
                /*
                 * Keep a reference from ip_match_our_address with psref



Home | Main Index | Thread Index | Old Index