Page MenuHomeFreeBSD

iflib: Remove redundant variable
ClosedPublic

Authored by erj on Aug 4 2023, 6:04 PM.
Tags
None
Referenced Files
F108310300: D41325.id125684.diff
Thu, Jan 23, 6:38 PM
Unknown Object (File)
Tue, Jan 14, 8:13 AM
Unknown Object (File)
Tue, Jan 14, 8:08 AM
Unknown Object (File)
Tue, Jan 14, 2:06 AM
Unknown Object (File)
Fri, Jan 10, 8:59 AM
Unknown Object (File)
Thu, Jan 9, 7:05 AM
Unknown Object (File)
Dec 5 2024, 6:17 PM
Unknown Object (File)
Nov 19 2024, 12:15 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