Page MenuHomeFreeBSD

iflib: Remove redundant variable
ClosedPublic

Authored by erj on Aug 4 2023, 6:04 PM.
Tags
None
Referenced Files
F93728990: D41325.diff
Thu, Sep 12, 12:25 AM
Unknown Object (File)
Sat, Sep 7, 1:20 PM
Unknown Object (File)
Thu, Sep 5, 10:13 AM
Unknown Object (File)
Fri, Aug 30, 11:06 AM
Unknown Object (File)
Fri, Aug 16, 1:52 AM
Unknown Object (File)
Wed, Aug 14, 7:22 AM
Unknown Object (File)
Jul 28 2024, 12:35 PM
Unknown Object (File)
Jun 26 2024, 4:01 AM

Details

Summary

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>

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable