Fix compilation warnings when building ENA driver with gcc compiler
The gcc compiler is more sensitive when variable is having an value assigned, but it is not used anywhere further. Submitted by: Michal Krawczyk <mk@semihalf.com> Reviewed by: rlibby Obtained from: Semihalf Sponsored by: Amazon, Inc. Differential Revision: https://reviews.freebsd.org/D12866
This commit is contained in:
parent
1d250dc0d9
commit
410de1bafb
@ -2725,7 +2725,7 @@ ena_xmit_mbuf(struct ena_ring *tx_ring, struct mbuf **mbuf)
|
||||
ena_qid = ENA_IO_TXQ_IDX(tx_ring->que->id);
|
||||
adapter = tx_ring->que->adapter;
|
||||
ena_dev = adapter->ena_dev;
|
||||
io_sq = &adapter->ena_dev->io_sq_queues[ena_qid];
|
||||
io_sq = &ena_dev->io_sq_queues[ena_qid];
|
||||
|
||||
rc = ena_check_and_collapse_mbuf(tx_ring, mbuf);
|
||||
if (unlikely(rc != 0)) {
|
||||
|
Loading…
Reference in New Issue
Block a user