Page MenuHomeFreeBSD

iflib: Remove redundant variable
ClosedPublic

Authored by erj on Aug 4 2023, 6:04 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Sep 27, 10:01 PM
Unknown Object (File)
Sun, Sep 22, 7:45 PM
Unknown Object (File)
Mon, Sep 16, 5:18 AM
Unknown Object (File)
Mon, Sep 16, 5:18 AM
Unknown Object (File)
Thu, Sep 12, 12:25 AM
Unknown Object (File)
Sat, Sep 7, 1:20 PM
Unknown Object (File)
Thu, Sep 5, 10:13 AM
Unknown Object (File)
Aug 30 2024, 11:06 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