Page MenuHomeFreeBSD

iflib: Remove redundant variable
ClosedPublic

Authored by erj on Aug 4 2023, 6:04 PM.
Tags
None
Referenced Files
F118881758: D41325.id125596.diff
Mon, Jun 2, 10:03 PM
F118851481: D41325.id125684.diff
Mon, Jun 2, 2:33 PM
Unknown Object (File)
Mon, Jun 2, 2:13 AM
Unknown Object (File)
Sun, Jun 1, 11:55 PM
Unknown Object (File)
Wed, May 28, 11:08 PM
Unknown Object (File)
Apr 25 2025, 3:36 AM
Unknown Object (File)
Apr 24 2025, 6:59 AM
Unknown Object (File)
Apr 24 2025, 2:12 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 Passed
Unit
No Test Coverage
Build Status
Buildable 52981
Build 49872: arc lint + arc unit