Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 May 2015 12:25:11 +0000 (UTC)
From:      Michael Tuexen <tuexen@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r283716 - stable/10/sys/netinet
Message-ID:  <201505291225.t4TCPBwe027713@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tuexen
Date: Fri May 29 12:25:11 2015
New Revision: 283716
URL: https://svnweb.freebsd.org/changeset/base/283716

Log:
  MFC r277337:
  
  Remove an unused variable.
  
  Reported by:	Coverity
  CID:		750999

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

Modified: stable/10/sys/netinet/sctp_usrreq.c
==============================================================================
--- stable/10/sys/netinet/sctp_usrreq.c	Fri May 29 12:22:35 2015	(r283715)
+++ stable/10/sys/netinet/sctp_usrreq.c	Fri May 29 12:25:11 2015	(r283716)
@@ -4724,7 +4724,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);
@@ -4735,7 +4734,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 {
@@ -4747,7 +4745,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?201505291225.t4TCPBwe027713>