Author: bz
Date: Mon Apr 22 14:53:53 2019
New Revision: 346556
URL: https://svnweb.freebsd.org/changeset/base/346556

Log:
  r297225 move the assignment of sin from add to the top of the function.
  sin is not changed after the initial assignment, so no need to set it again.
  
  MFC after:    10 days

Modified:
  head/sys/netinet/udp_usrreq.c

Modified: head/sys/netinet/udp_usrreq.c
==============================================================================
--- head/sys/netinet/udp_usrreq.c       Mon Apr 22 14:49:24 2019        
(r346555)
+++ head/sys/netinet/udp_usrreq.c       Mon Apr 22 14:53:53 2019        
(r346556)
@@ -1275,7 +1275,6 @@ udp_output(struct inpcb *inp, struct mbuf *m, struct s
         */
        pr = inp->inp_socket->so_proto->pr_protocol;
        pcbinfo = udp_get_inpcbinfo(pr);
-       sin = (struct sockaddr_in *)addr;
        if (sin != NULL &&
            (inp->inp_laddr.s_addr == INADDR_ANY && inp->inp_lport == 0)) {
                INP_HASH_WLOCK(pcbinfo);
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to