Date: Tue, 03 Sep 2019 14:07:40 -0000 From: "Bjoern A. Zeeb" <bz@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r346556 - head/sys/netinet Message-ID: <201904221453.x3MErrgH057475@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201904221453.x3MErrgH057475>