mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Minor cleanups.
MFC after: 3 days
This commit is contained in:
parent
d643ff21f4
commit
e7a39b856a
2 changed files with 3 additions and 4 deletions
|
|
@ -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 a new issue