Minor cleanups.

MFC after:		3 days
This commit is contained in:
Michael Tuexen 2020-10-07 15:22:48 +00:00
parent d643ff21f4
commit e7a39b856a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=366517
2 changed files with 3 additions and 4 deletions

View File

@ -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;
}

View File

@ -2774,8 +2774,7 @@ sctp_select_nth_preferred_addr_from_ifn_boundall(struct sctp_ifn *ifn,
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;