Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Apr 2014 19:17:20 +0000 (UTC)
From:      Rick Macklem <rmacklem@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r264739 - head/sys/netinet
Message-ID:  <201404211917.s3LJHKem085937@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 	}



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