]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r312678: Eliminate misleading comments and dead code in
authorrpokala <rpokala@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 1 Feb 2017 04:54:23 +0000 (04:54 +0000)
committerrpokala <rpokala@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 1 Feb 2017 04:54:23 +0000 (04:54 +0000)
commita58ce9884392be5655411112aa9463ab1f7f0cb9
tree75669e5825b87529532623ce24d3a6ec1d22c838
parentbb1bd0193d267dde4e63d964c13d708dba670f9a
MFC r312678: 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.

git-svn-id: svn://svn.freebsd.org/base/stable/10@313039 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/net/ieee8023ad_lacp.c