svn commit: r366517 - head/sys/netinet
Michael Tuexen
tuexen at FreeBSD.org
Wed Oct 7 15:22:49 UTC 2020
Author: tuexen
Date: Wed Oct 7 15:22:48 2020
New Revision: 366517
URL: https://svnweb.freebsd.org/changeset/base/366517
Log:
Minor cleanups.
MFC after: 3 days
Modified:
head/sys/netinet/sctp_cc_functions.c
head/sys/netinet/sctp_output.c
Modified: head/sys/netinet/sctp_cc_functions.c
==============================================================================
--- head/sys/netinet/sctp_cc_functions.c Wed Oct 7 14:43:16 2020 (r366516)
+++ head/sys/netinet/sctp_cc_functions.c Wed Oct 7 15:22:48 2020 (r366517)
@@ -1993,12 +1993,12 @@ htcp_alpha_update(struct htcp *ca)
scale = min(max(scale, 1U << 2), 10U << 3); /* clamping ratio to
* interval [0.5,10]<<3 */
factor = (factor << 3) / scale;
- if (!factor)
+ if (factor != 0)
factor = 1;
}
ca->alpha = 2 * factor * ((1 << 7) - ca->beta);
- if (!ca->alpha)
+ if (ca->alpha != 0)
ca->alpha = ALPHA_BASE;
}
Modified: head/sys/netinet/sctp_output.c
==============================================================================
--- head/sys/netinet/sctp_output.c Wed Oct 7 14:43:16 2020 (r366516)
+++ head/sys/netinet/sctp_output.c Wed Oct 7 15:22:48 2020 (r366517)
@@ -2774,8 +2774,7 @@ sctp_select_nth_preferred_addr_from_ifn_boundall(struc
uint8_t dest_is_priv,
int addr_wanted,
sa_family_t fam,
- sctp_route_t *ro
-)
+ sctp_route_t *ro)
{
struct sctp_ifa *ifa, *sifa;
int num_eligible_addr = 0;
More information about the svn-src-all
mailing list