Remove unused but set variable in cxgb_sge
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
3f345a5d09
), but is no longer used for anything, and can be removed
without any functional change.
MFC after: 3 days
Reviewed by: np
Differential Revision: https://reviews.freebsd.org/D35833
This commit is contained in:
parent
904347a00c
commit
cab040039d
@ -1287,7 +1287,6 @@ write_wr_hdr_sgl(unsigned int ndesc, struct tx_desc *txd, struct txq_state *txqs
|
||||
{
|
||||
|
||||
struct work_request_hdr *wrp = (struct work_request_hdr *)txd;
|
||||
struct tx_sw_desc *txsd = &txq->sdesc[txqs->pidx];
|
||||
|
||||
if (__predict_true(ndesc == 1)) {
|
||||
set_wr_hdr(wrp, htonl(F_WR_SOP | F_WR_EOP | V_WR_DATATYPE(1) |
|
||||
@ -1318,12 +1317,10 @@ write_wr_hdr_sgl(unsigned int ndesc, struct tx_desc *txd, struct txq_state *txqs
|
||||
|
||||
fp += avail;
|
||||
txd++;
|
||||
txsd++;
|
||||
if (++txqs->pidx == txq->size) {
|
||||
txqs->pidx = 0;
|
||||
txqs->gen ^= 1;
|
||||
txd = txq->desc;
|
||||
txsd = txq->sdesc;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user