]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
iflib: Remove redundant variable
authorEric Joyner <erj@FreeBSD.org>
Fri, 4 Aug 2023 17:57:11 +0000 (10:57 -0700)
committerEric Joyner <erj@FreeBSD.org>
Thu, 24 Aug 2023 21:07:22 +0000 (14:07 -0700)
commit3df6b1d39af58620edf59be076ab134bf90e083d
tree20ac4607be88a0a257b1a07137e90e77e1ce776d
parentcb5152f961bbb89b186ee76aaa8eb631f21cf6c4
iflib: Remove redundant variable

In iflib_init_locked(), sctx and scctx both point to the same value,
which is the ifc_softc_ctx field in the iflib softc. Remove the
declaration and assignment to sctx since scctx can be used instead, and
the name of scctx follows the naming convention used for local variables
that point to ifc_softc_ctx.

In theory there should be no functional impact with this change.

Signed-off-by: Eric Joyner <erj@FreeBSD.org>
Reviewed by: kbowling@
Sponsored by: Intel Corporation
Differential Revision: https://reviews.freebsd.org/D41325

(cherry picked from commit d2dd3d5a989d1a2c9ebfbb90a1e682d3ad9db3c3)
sys/net/iflib.c