svn commit: r277034 - head/sys/netinet
Michael Tuexen
tuexen at FreeBSD.org
Sun Jan 11 22:49:21 UTC 2015
Author: tuexen
Date: Sun Jan 11 22:49:20 2015
New Revision: 277034
URL: https://svnweb.freebsd.org/changeset/base/277034
Log:
Remove dead code.
Reported by: Coverity
CID: 748663
MFC after: 1 week
Modified:
head/sys/netinet/sctp_input.c
Modified: head/sys/netinet/sctp_input.c
==============================================================================
--- head/sys/netinet/sctp_input.c Sun Jan 11 22:23:39 2015 (r277033)
+++ head/sys/netinet/sctp_input.c Sun Jan 11 22:49:20 2015 (r277034)
@@ -2595,7 +2595,7 @@ sctp_handle_cookie_echo(struct mbuf *m,
/* This should not happen */
return (NULL);
}
- if ((*stcb == NULL) && to) {
+ if (*stcb == NULL) {
/* Yep, lets check */
*stcb = sctp_findassociation_ep_addr(inp_p, to, netp, dst, NULL);
if (*stcb == NULL) {
@@ -2634,9 +2634,6 @@ sctp_handle_cookie_echo(struct mbuf *m,
}
}
}
- if (to == NULL) {
- return (NULL);
- }
cookie_len -= SCTP_SIGNATURE_SIZE;
if (*stcb == NULL) {
/* this is the "normal" case... get a new TCB */
More information about the svn-src-head
mailing list