Date: Sun, 18 Jan 2015 20:20:28 +0000 (UTC) From: Michael Tuexen <tuexen@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r277337 - head/sys/netinet Message-ID: <201501182020.t0IKKSM1030194@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: tuexen Date: Sun Jan 18 20:20:27 2015 New Revision: 277337 URL: https://svnweb.freebsd.org/changeset/base/277337 Log: Remove an unused variable. Reported by: Coverity CID: 750999 MFC after: 1 week Modified: head/sys/netinet/sctp_usrreq.c Modified: head/sys/netinet/sctp_usrreq.c ============================================================================== --- head/sys/netinet/sctp_usrreq.c Sun Jan 18 20:15:47 2015 (r277336) +++ head/sys/netinet/sctp_usrreq.c Sun Jan 18 20:20:27 2015 (r277337) @@ -4720,7 +4720,6 @@ sctp_setopt(struct socket *so, int optna case SCTP_CONNECT_X_COMPLETE: { struct sockaddr *sa; - struct sctp_nets *net; /* FIXME MT: check correct? */ SCTP_CHECK_AND_CAST(sa, optval, struct sockaddr, optsize); @@ -4731,7 +4730,6 @@ sctp_setopt(struct socket *so, int optna stcb = LIST_FIRST(&inp->sctp_asoc_list); if (stcb) { SCTP_TCB_LOCK(stcb); - net = sctp_findnet(stcb, sa); } SCTP_INP_RUNLOCK(inp); } else { @@ -4743,7 +4741,7 @@ sctp_setopt(struct socket *so, int optna * TCB.. aka NULL. */ SCTP_INP_INCR_REF(inp); - stcb = sctp_findassociation_ep_addr(&inp, sa, &net, NULL, NULL); + stcb = sctp_findassociation_ep_addr(&inp, sa, NULL, NULL, NULL); if (stcb == NULL) { SCTP_INP_DECR_REF(inp); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201501182020.t0IKKSM1030194>