git: af445a63a3d8 - stable/13 - ena: Remove write-only datapath variable

From: Marcin Wojtas <mw_at_FreeBSD.org>
Date: Tue, 26 Jul 2022 19:30:58 UTC
The branch stable/13 has been updated by mw:

URL: https://cgit.FreeBSD.org/src/commit/?id=af445a63a3d8d5b6426edefb696cb15bc514c78c

commit af445a63a3d8d5b6426edefb696cb15bc514c78c
Author:     Michal Krawczyk <mk@semihalf.com>
AuthorDate: 2022-06-10 09:18:11 +0000
Commit:     Marcin Wojtas <mw@FreeBSD.org>
CommitDate: 2022-07-26 19:30:16 +0000

    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 d5d5ea87236d8f839cad84296f23d285a696195c)
---
 sys/dev/ena/ena_datapath.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/sys/dev/ena/ena_datapath.c b/sys/dev/ena/ena_datapath.c
index 6a7839d49583..d5ecb4ece985 100644
--- a/sys/dev/ena/ena_datapath.c
+++ b/sys/dev/ena/ena_datapath.c
@@ -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",