svn commit: r277049 - head/sys/netinet

Michael Tuexen tuexen at FreeBSD.org
Mon Jan 12 07:39:53 UTC 2015


Author: tuexen
Date: Mon Jan 12 07:39:52 2015
New Revision: 277049
URL: https://svnweb.freebsd.org/changeset/base/277049

Log:
  Remove dead code.
  
  Reported by:	Coverity
  CID:		1018052
  MFC after:	1 week

Modified:
  head/sys/netinet/sctputil.c

Modified: head/sys/netinet/sctputil.c
==============================================================================
--- head/sys/netinet/sctputil.c	Mon Jan 12 07:37:06 2015	(r277048)
+++ head/sys/netinet/sctputil.c	Mon Jan 12 07:39:52 2015	(r277049)
@@ -5047,7 +5047,6 @@ sctp_find_ifa_by_addr(struct sockaddr *a
 
 	vrf = sctp_find_vrf(vrf_id);
 	if (vrf == NULL) {
-stage_right:
 		if (holds_lock == 0)
 			SCTP_IPI_ADDR_RUNLOCK();
 		return (NULL);
@@ -5067,15 +5066,6 @@ stage_right:
 		return (NULL);
 	}
 	LIST_FOREACH(sctp_ifap, hash_head, next_bucket) {
-		if (sctp_ifap == NULL) {
-#ifdef INVARIANTS
-			panic("Huh LIST_FOREACH corrupt");
-			goto stage_right;
-#else
-			SCTP_PRINTF("LIST corrupt of sctp_ifap's?\n");
-			goto stage_right;
-#endif
-		}
 		if (addr->sa_family != sctp_ifap->address.sa.sa_family)
 			continue;
 #ifdef INET


More information about the svn-src-all mailing list