svn commit: r277031 - head/sys/netinet

Michael Tuexen tuexen at FreeBSD.org
Sun Jan 11 21:55:31 UTC 2015


Author: tuexen
Date: Sun Jan 11 21:55:30 2015
New Revision: 277031
URL: https://svnweb.freebsd.org/changeset/base/277031

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

Modified:
  head/sys/netinet/sctp_pcb.c

Modified: head/sys/netinet/sctp_pcb.c
==============================================================================
--- head/sys/netinet/sctp_pcb.c	Sun Jan 11 21:44:56 2015	(r277030)
+++ head/sys/netinet/sctp_pcb.c	Sun Jan 11 21:55:30 2015	(r277031)
@@ -1441,9 +1441,6 @@ sctp_findassociation_ep_addr(struct sctp
 		}
 		head = &inp->sctp_tcbhash[SCTP_PCBHASH_ALLADDR(rport,
 		    inp->sctp_hashmark)];
-		if (head == NULL) {
-			goto null_return;
-		}
 		LIST_FOREACH(stcb, head, sctp_tcbhash) {
 			if (stcb->rport != rport) {
 				/* remote port does not match */


More information about the svn-src-all mailing list