Page MenuHomeFreeBSD

iflib: Remove redundant variable
ClosedPublic

Authored by erj on Aug 4 2023, 6:04 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, May 2, 2:52 PM
Unknown Object (File)
Sun, Apr 28, 8:15 PM
Unknown Object (File)
Fri, Apr 26, 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
Unknown Object (File)
Feb 1 2024, 6:39 AM
Unknown Object (File)
Dec 27 2023, 12:37 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