svn commit: r265471 - stable/10/sys/netinet

Rick Macklem rmacklem at FreeBSD.org
Tue May 6 22:04:51 UTC 2014


Author: rmacklem
Date: Tue May  6 22:04:50 2014
New Revision: 265471
URL: http://svnweb.freebsd.org/changeset/base/265471

Log:
  MFC: r264739
  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.

Modified:
  stable/10/sys/netinet/tcp_subr.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/netinet/tcp_subr.c
==============================================================================
--- stable/10/sys/netinet/tcp_subr.c	Tue May  6 21:59:48 2014	(r265470)
+++ stable/10/sys/netinet/tcp_subr.c	Tue May  6 22:04:50 2014	(r265471)
@@ -1805,9 +1805,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);
 	}
@@ -1843,9 +1844,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