HomeFreeBSD

iflib: Remove redundant variable

Description

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)

Details

Provenance
erjAuthored on Aug 4 2023, 5:57 PM
Differential Revision
D41325: iflib: Remove redundant variable
Parents
rGcb5152f961bb: iflib: Fix panic during driver reload stress test
Branches
Unknown
Tags
Unknown