Page MenuHomeFreeBSD

iflib: Remove redundant variable
ClosedPublic

Authored by erj on Aug 4 2023, 6:04 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Apr 21, 6:44 AM
Unknown Object (File)
Thu, Apr 17, 11:31 AM
Unknown Object (File)
Mon, Apr 14, 6:54 PM
Unknown Object (File)
Mon, Apr 14, 7:55 AM
Unknown Object (File)
Mon, Apr 14, 4:32 AM
Unknown Object (File)
Sun, Apr 13, 10:58 PM
Unknown Object (File)
Sun, Apr 13, 10:54 PM
Unknown Object (File)
Sun, Apr 13, 4:58 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