mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-15 14:56:13 +01:00
Minor cleanups.
MFC after: 3 days
This commit is contained in:
parent
d643ff21f4
commit
e7a39b856a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=366517
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user