summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrmacklem <rmacklem@FreeBSD.org>2014-05-06 22:04:50 +0000
committerrmacklem <rmacklem@FreeBSD.org>2014-05-06 22:04:50 +0000
commitd706690fda8fbd1a8b9ba67a4a52bf2a52bd75ca (patch)
treec5b185c88dde20524d52f87eed5586f2ae33977b
parent2200ec99a6495cfce788213ef24cb7aa1445a2db (diff)
downloadFreeBSD-src-d706690fda8fbd1a8b9ba67a4a52bf2a52bd75ca.zip
FreeBSD-src-d706690fda8fbd1a8b9ba67a4a52bf2a52bd75ca.tar.gz
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.
-rw-r--r--sys/netinet/tcp_subr.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c
index 4a9cece..0c15314 100644
--- a/sys/netinet/tcp_subr.c
+++ b/sys/netinet/tcp_subr.c
@@ -1805,9 +1805,10 @@ tcp_maxmtu(struct in_conninfo *inc, struct tcp_ifcap *cap)
/* 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, struct tcp_ifcap *cap)
/* 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);
}
OpenPOWER on IntegriCloud