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)
Sat, Apr 27, 12:06 PM
Unknown Object (File)
Sat, Apr 27, 12:06 PM
Unknown Object (File)
Sat, Apr 27, 12:06 PM
Unknown Object (File)
Sat, Apr 27, 11:20 AM
Unknown Object (File)
Mon, Apr 22, 5:43 AM
Unknown Object (File)
Apr 6 2024, 10:28 AM
Unknown Object (File)
Dec 20 2023, 4:48 AM
Unknown Object (File)
Oct 15 2023, 5:32 AM
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