patches for DPDK stable branches
 help / color / mirror / Atom feed
* [[PATCH 20.11]] raw/octeontx2_ep: remove unused variable
@ 2021-12-06  7:42 Xueming Li
  2021-12-06 17:26 ` [EXT] " Radha Chintakuntla
  0 siblings, 1 reply; 2+ messages in thread
From: Xueming Li @ 2021-12-06  7:42 UTC (permalink / raw)
  To: Radha Mohan Chintakuntla, Veerasenareddy Burru, Luca Boccassi
  Cc: xuemingl, stable

Removes unused variable reported by clang compiler.

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

Signed-off-by: Xueming Li <xuemingl@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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: [EXT] [[PATCH 20.11]] raw/octeontx2_ep: remove unused variable
  2021-12-06  7:42 [[PATCH 20.11]] raw/octeontx2_ep: remove unused variable Xueming Li
@ 2021-12-06 17:26 ` Radha Chintakuntla
  0 siblings, 0 replies; 2+ messages in thread
From: Radha Chintakuntla @ 2021-12-06 17:26 UTC (permalink / raw)
  To: Xueming Li, Veerasenareddy Burru, Luca Boccassi; +Cc: stable


> -----Original Message-----
> From: Xueming Li <xuemingl@nvidia.com>
> Sent: Sunday, December 5, 2021 11:43 PM
> To: Radha Chintakuntla <radhac@marvell.com>; Veerasenareddy Burru
> <vburru@marvell.com>; Luca Boccassi <bluca@debian.org>
> Cc: xuemingl@nvidia.com; stable@dpdk.org
> Subject: [EXT] [[PATCH 20.11]] raw/octeontx2_ep: remove unused variable
> 
> External Email
> 
> ----------------------------------------------------------------------
> Removes unused variable reported by clang compiler.
> 
> Fixes: b848f0416acb ("raw/octeontx2_ep: add dequeue operation")
> Cc: stable@dpdk.org
> 
> Signed-off-by: Xueming Li <xuemingl@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

Acked-by: Radha Mohan Chintakuntla <radhac@marvell.com>


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-12-06 17:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-06  7:42 [[PATCH 20.11]] raw/octeontx2_ep: remove unused variable Xueming Li
2021-12-06 17:26 ` [EXT] " Radha Chintakuntla

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).