Page MenuHomeFreeBSD

iflib: Remove redundant variable
ClosedPublic

Authored by erj on Aug 4 2023, 6:04 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jun 1, 4:58 PM
Unknown Object (File)
Tue, May 28, 12:35 PM
Unknown Object (File)
May 2 2024, 2:52 PM
Unknown Object (File)
Apr 28 2024, 8:15 PM
Unknown Object (File)
Apr 26 2024, 1:22 AM
Unknown Object (File)
Apr 14 2024, 9:53 PM
Unknown Object (File)
Apr 13 2024, 2:02 PM
Unknown Object (File)
Feb 6 2024, 3: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