git: d5d5ea87236d - main - ena: Remove write-only datapath variable

From: Marcin Wojtas <mw_at_FreeBSD.org>
Date: Thu, 30 Jun 2022 16:15:42 UTC
The branch main has been updated by mw:

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

commit d5d5ea87236d8f839cad84296f23d285a696195c
Author:     Michal Krawczyk <mk@semihalf.com>
AuthorDate: 2022-06-10 09:18:11 +0000
Commit:     Marcin Wojtas <mw@FreeBSD.org>
CommitDate: 2022-06-30 15:32:09 +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.
---
 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",