[[PATCH 20.11]] raw/octeontx2_ep: remove unused variable

Xueming Li xuemingl at nvidia.com
Mon Dec 6 08:42:55 CET 2021


Removes unused variable reported by clang compiler.

Fixes: b848f0416acb ("raw/octeontx2_ep: add dequeue operation")
Cc: stable at dpdk.org

Signed-off-by: Xueming Li <xuemingl at nvidia.com>
---
This PMD driver has been removed in upstream, 20.11 only patch
---
 drivers/raw/octeontx2_ep/otx2_ep_enqdeq.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/raw/octeontx2_ep/otx2_ep_enqdeq.c b/drivers/raw/octeontx2_ep/otx2_ep_enqdeq.c
index d04e957d82..31459c182e 100644
--- a/drivers/raw/octeontx2_ep/otx2_ep_enqdeq.c
+++ b/drivers/raw/octeontx2_ep/otx2_ep_enqdeq.c
@@ -694,7 +694,6 @@ sdp_droq_read_packet(struct sdp_device *sdpvf __rte_unused,
 		     struct sdp_droq_pkt *droq_pkt)
 {
 	struct sdp_droq_info *info;
-	uint32_t total_len = 0;
 	uint32_t pkt_len = 0;
 
 	info = &droq->info_list[droq->read_idx];
@@ -706,7 +705,6 @@ sdp_droq_read_packet(struct sdp_device *sdpvf __rte_unused,
 
 	/* Deduce the actual data size */
 	info->length -= SDP_RH_SIZE;
-	total_len += (uint32_t)info->length;
 
 	otx2_sdp_dbg("OQ: pkt_len[%ld], buffer_size %d",
 			(long)info->length, droq->buffer_size);
-- 
2.34.0



More information about the stable mailing list