svn commit: r283714 - stable/10/sys/netinet

Michael Tuexen tuexen at FreeBSD.org
Fri May 29 12:19:42 UTC 2015


Author: tuexen
Date: Fri May 29 12:19:41 2015
New Revision: 283714
URL: https://svnweb.freebsd.org/changeset/base/283714

Log:
  MFC r277049:
  
  Remove dead code.
  
  Reported by:	Coverity
  CID:		1018052

Modified:
  stable/10/sys/netinet/sctputil.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/netinet/sctputil.c
==============================================================================
--- stable/10/sys/netinet/sctputil.c	Fri May 29 12:17:21 2015	(r283713)
+++ stable/10/sys/netinet/sctputil.c	Fri May 29 12:19:41 2015	(r283714)
@@ -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