svn commit: r264739 - head/sys/netinet

Rick Macklem rmacklem at FreeBSD.org
Mon Apr 21 19:17:20 UTC 2014


Author: rmacklem
Date: Mon Apr 21 19:17:19 2014
New Revision: 264739
URL: http://svnweb.freebsd.org/changeset/base/264739

Log:
  Add {} braces so that the code conforms to the indentation.
  Fortunately, I don't think doing the assignment of cap->tsomax
  unconditionally causes any problem.
  
  Reviewed by:	glebius
  MFC after:	2 weeks

Modified:
  head/sys/netinet/tcp_subr.c

Modified: head/sys/netinet/tcp_subr.c
==============================================================================
--- head/sys/netinet/tcp_subr.c	Mon Apr 21 19:10:23 2014	(r264738)
+++ head/sys/netinet/tcp_subr.c	Mon Apr 21 19:17:19 2014	(r264739)
@@ -1819,9 +1819,10 @@ tcp_maxmtu(struct in_conninfo *inc, stru
 		/* Report additional interface capabilities. */
 		if (cap != NULL) {
 			if (ifp->if_capenable & IFCAP_TSO4 &&
-			    ifp->if_hwassist & CSUM_TSO)
+			    ifp->if_hwassist & CSUM_TSO) {
 				cap->ifcap |= CSUM_TSO;
 				cap->tsomax = ifp->if_hw_tsomax;
+			}
 		}
 		RTFREE(sro.ro_rt);
 	}
@@ -1857,9 +1858,10 @@ tcp_maxmtu6(struct in_conninfo *inc, str
 		/* Report additional interface capabilities. */
 		if (cap != NULL) {
 			if (ifp->if_capenable & IFCAP_TSO6 &&
-			    ifp->if_hwassist & CSUM_TSO)
+			    ifp->if_hwassist & CSUM_TSO) {
 				cap->ifcap |= CSUM_TSO;
 				cap->tsomax = ifp->if_hw_tsomax;
+			}
 		}
 		RTFREE(sro6.ro_rt);
 	}


More information about the svn-src-all mailing list