summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortuexen <tuexen@FreeBSD.org>2014-05-06 16:51:07 +0000
committertuexen <tuexen@FreeBSD.org>2014-05-06 16:51:07 +0000
commitebf0ea80e499282d74b1d15f6751c4bee0d019c9 (patch)
tree658394e4bcda3c7d815c99547f799e5fbea81840
parent72755774fc61bd36669403a653c1446b2acaaa60 (diff)
downloadFreeBSD-src-ebf0ea80e499282d74b1d15f6751c4bee0d019c9.zip
FreeBSD-src-ebf0ea80e499282d74b1d15f6751c4bee0d019c9.tar.gz
Remove unused code. This is triggered by the bugreport of Sylvestre Ledru
which deal with useless code in the user land stack: https://bugzilla.mozilla.org/show_bug.cgi?id=1003929 MFC after: 3 days
-rw-r--r--sys/netinet/sctp_pcb.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/sys/netinet/sctp_pcb.c b/sys/netinet/sctp_pcb.c
index 3dbaa8a..861455c 100644
--- a/sys/netinet/sctp_pcb.c
+++ b/sys/netinet/sctp_pcb.c
@@ -2735,7 +2735,6 @@ sctp_inpcb_bind(struct socket *so, struct sockaddr *addr,
uint32_t vrf_id;
lport = 0;
- error = 0;
bindall = 1;
inp = (struct sctp_inpcb *)so->so_pcb;
ip_inp = (struct inpcb *)so->so_pcb;
@@ -2856,13 +2855,6 @@ sctp_inpcb_bind(struct socket *so, struct sockaddr *addr,
return (error);
}
}
- if (p == NULL) {
- SCTP_INP_DECR_REF(inp);
- SCTP_INP_WUNLOCK(inp);
- SCTP_INP_INFO_WUNLOCK();
- SCTP_LTRACE_ERR_RET(inp, NULL, NULL, SCTP_FROM_SCTP_PCB, error);
- return (error);
- }
SCTP_INP_WUNLOCK(inp);
if (bindall) {
vrf_id = inp->def_vrf_id;
OpenPOWER on IntegriCloud