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);
                                }
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to