Page MenuHomeFreeBSD

iflib: Remove redundant variable
ClosedPublic

Authored by erj on Aug 4 2023, 6:04 PM.
Tags
None
Referenced Files
F102939349: D41325.diff
Tue, Nov 19, 12:15 AM
Unknown Object (File)
Mon, Nov 11, 6:34 AM
Unknown Object (File)
Thu, Nov 7, 2:31 PM
Unknown Object (File)
Tue, Oct 29, 12:38 PM
Unknown Object (File)
Fri, Oct 25, 1:55 PM
Unknown Object (File)
Oct 2 2024, 4:25 PM
Unknown Object (File)
Oct 2 2024, 2:21 PM
Unknown Object (File)
Sep 27 2024, 10:01 PM

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 Passed
Unit
No Test Coverage
Build Status
Buildable 52981
Build 49872: arc lint + arc unit