Page MenuHomeFreeBSD

Remove unused but set variable in cxgb_sge
ClosedPublic

Authored by dim on Jul 16 2022, 6:18 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Oct 21, 3:42 AM
Unknown Object (File)
Sep 25 2024, 2:20 PM
Unknown Object (File)
Sep 25 2024, 12:34 PM
Unknown Object (File)
Sep 21 2024, 4:56 PM
Unknown Object (File)
Sep 20 2024, 1:09 PM
Unknown Object (File)
Sep 19 2024, 6:12 PM
Unknown Object (File)
Sep 16 2024, 4:20 PM
Unknown Object (File)
Sep 4 2024, 4:57 PM
Subscribers

Details

Summary

Clang 15 warns:

sys/dev/cxgb/cxgb_sge.c:1290:21: error: variable 'txsd' set but not used [-Werror,-Wunused-but-set-variable]
        struct tx_sw_desc *txsd = &txq->sdesc[txqs->pidx];
                           ^

It appears 'txsd' is a leftover from a previous refactoring (see
3f345a5d09b6), but is no longer used for anything, and can be removed
without any functional change.

MFC after: 3 days

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable