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
This commit is contained in:
@@ -1819,9 +1819,10 @@ tcp_maxmtu(struct in_conninfo *inc, struct tcp_ifcap *cap)
|
|||||||
/* Report additional interface capabilities. */
|
/* Report additional interface capabilities. */
|
||||||
if (cap != NULL) {
|
if (cap != NULL) {
|
||||||
if (ifp->if_capenable & IFCAP_TSO4 &&
|
if (ifp->if_capenable & IFCAP_TSO4 &&
|
||||||
ifp->if_hwassist & CSUM_TSO)
|
ifp->if_hwassist & CSUM_TSO) {
|
||||||
cap->ifcap |= CSUM_TSO;
|
cap->ifcap |= CSUM_TSO;
|
||||||
cap->tsomax = ifp->if_hw_tsomax;
|
cap->tsomax = ifp->if_hw_tsomax;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
RTFREE(sro.ro_rt);
|
RTFREE(sro.ro_rt);
|
||||||
}
|
}
|
||||||
@@ -1857,9 +1858,10 @@ tcp_maxmtu6(struct in_conninfo *inc, struct tcp_ifcap *cap)
|
|||||||
/* Report additional interface capabilities. */
|
/* Report additional interface capabilities. */
|
||||||
if (cap != NULL) {
|
if (cap != NULL) {
|
||||||
if (ifp->if_capenable & IFCAP_TSO6 &&
|
if (ifp->if_capenable & IFCAP_TSO6 &&
|
||||||
ifp->if_hwassist & CSUM_TSO)
|
ifp->if_hwassist & CSUM_TSO) {
|
||||||
cap->ifcap |= CSUM_TSO;
|
cap->ifcap |= CSUM_TSO;
|
||||||
cap->tsomax = ifp->if_hw_tsomax;
|
cap->tsomax = ifp->if_hw_tsomax;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
RTFREE(sro6.ro_rt);
|
RTFREE(sro6.ro_rt);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user