Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 03 Sep 2019 14:07:39 -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: r346554 - head/sys/netinet
Message-ID:  <201904221420.x3MEKn34037421@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bz
Date: Mon Apr 22 14:20:49 2019
New Revision: 346554
URL: https://svnweb.freebsd.org/changeset/base/346554

Log:
  Remove some excessive brackets.
  
  No functional change.
  
  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:10:40 2019	(r346553)
+++ head/sys/netinet/udp_usrreq.c	Mon Apr 22 14:20:49 2019	(r346554)
@@ -1280,12 +1280,12 @@ udp_output(struct inpcb *inp, struct mbuf *m, struct s
 	    (inp->inp_laddr.s_addr == INADDR_ANY && inp->inp_lport == 0)) {
 		INP_HASH_WLOCK(pcbinfo);
 		unlock_udbinfo = UH_WLOCKED;
-	} else if ((sin != NULL && (
-	    (sin->sin_addr.s_addr == INADDR_ANY) ||
-	    (sin->sin_addr.s_addr == INADDR_BROADCAST) ||
-	    (inp->inp_laddr.s_addr == INADDR_ANY) ||
-	    (inp->inp_lport == 0))) ||
-	    (src.sin_family == AF_INET)) {
+	} else if ((sin != NULL &&
+		(sin->sin_addr.s_addr == INADDR_ANY ||
+		sin->sin_addr.s_addr == INADDR_BROADCAST ||
+		inp->inp_laddr.s_addr == INADDR_ANY ||
+		inp->inp_lport == 0)) ||
+	    src.sin_family == AF_INET) {
 		INP_HASH_RLOCK_ET(pcbinfo, et);
 		unlock_udbinfo = UH_RLOCKED;
 	} else





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201904221420.x3MEKn34037421>