svn commit: r346556 - head/sys/netinet

Bjoern A. Zeeb bz at FreeBSD.org
Mon Apr 22 14:53:54 UTC 2019


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);


More information about the svn-src-head mailing list