Module Name: src Committed By: maxv Date: Wed Feb 7 08:12:25 UTC 2018
Modified Files: src/sys/netinet: ip_input.c Log Message: Remove null check on ip, it can't be null. (Confuses code scanners.) To generate a diff of this commit: cvs rdiff -u -r1.373 -r1.374 src/sys/netinet/ip_input.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/netinet/ip_input.c diff -u src/sys/netinet/ip_input.c:1.373 src/sys/netinet/ip_input.c:1.374 --- src/sys/netinet/ip_input.c:1.373 Tue Feb 6 06:36:40 2018 +++ src/sys/netinet/ip_input.c Wed Feb 7 08:12:25 2018 @@ -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 @@ ours: * 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