ena: Remove write-only datapath variable

The ena_qid variable value is never used. It can be safely removed.
That also silences the compilation warning.

Obtained from: Semihalf
MFC after: 2 weeks
Sponsored by: Amazon, Inc.

(cherry picked from commit d5d5ea8723)
This commit is contained in:
Michal Krawczyk 2022-06-10 11:18:11 +02:00 committed by Marcin Wojtas
parent cbbecd257e
commit af445a63a3

View file

@ -1100,7 +1100,6 @@ ena_start_xmit(struct ena_ring *tx_ring)
{
struct mbuf *mbuf;
struct ena_adapter *adapter = tx_ring->adapter;
int ena_qid;
int ret = 0;
ENA_RING_MTX_ASSERT(tx_ring);
@ -1111,8 +1110,6 @@ ena_start_xmit(struct ena_ring *tx_ring)
if (unlikely(!ENA_FLAG_ISSET(ENA_FLAG_LINK_UP, adapter)))
return;
ena_qid = ENA_IO_TXQ_IDX(tx_ring->que->id);
while ((mbuf = drbr_peek(adapter->ifp, tx_ring->br)) != NULL) {
ena_log_io(adapter->pdev, DBG,
"\ndequeued mbuf %p with flags %#x and header csum flags %#jx\n",