HomeFreeBSD

Eliminate misleading comments and dead code in lacp_port_create()

Description

Eliminate misleading comments and dead code in lacp_port_create()

Variables "fast" and "active" are both constant in lacp_port_create(), but
comments mispleadingly suggest that "fast" can be changed via ioctl. The
constant values control the value of "lp->lp_state", so it too is constant,
and the code for assigning different value to it is essentially dead.

Remove both "fast" and "active", and set "lp->lp_state" unconditionally;
that gets rid of the dead code and misleading comments.

CID: 1305692
CID: 1305734

Reported by: asomers
Reviewed by: asomers
MFC after: 1 week
Sponsored by: Panasas
Differential Revision: https://reviews.freebsd.org/D9302

Details

Provenance
rpokalaAuthored on
Reviewer
asomers
Differential Revision
D9302: Eliminate misleading comments and dead code in lacp_port_create()
Parents
rS312677: MFC r312341:
Branches
Unknown
Tags
Unknown