[Midnightbsd-cvs] src [7969] trunk/sys/netinet/igmp.c: cant be null here

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Thu Sep 15 04:07:54 EDT 2016


Revision: 7969
          http://svnweb.midnightbsd.org/src/?rev=7969
Author:   laffer1
Date:     2016-09-15 04:07:54 -0400 (Thu, 15 Sep 2016)
Log Message:
-----------
cant be null here

Modified Paths:
--------------
    trunk/sys/netinet/igmp.c

Modified: trunk/sys/netinet/igmp.c
===================================================================
--- trunk/sys/netinet/igmp.c	2016-09-14 23:39:35 UTC (rev 7968)
+++ trunk/sys/netinet/igmp.c	2016-09-15 08:07:54 UTC (rev 7969)
@@ -2283,13 +2283,11 @@
 	 */
 	KASSERT(inm->inm_ifma != NULL, ("%s: no ifma", __func__));
 	ifp = inm->inm_ifma->ifma_ifp;
-	if (ifp != NULL) {
-		/*
-		 * Sanity check that netinet's notion of ifp is the
-		 * same as net's.
-		 */
-		KASSERT(inm->inm_ifp == ifp, ("%s: bad ifp", __func__));
-	}
+	/*
+	 * Sanity check that netinet's notion of ifp is the
+	 * same as net's.
+	 */
+	KASSERT(inm->inm_ifp == ifp, ("%s: bad ifp", __func__));
 
 	IGMP_LOCK();
 



More information about the Midnightbsd-cvs mailing list