[dpdk-dev] [PATCH 4/4] app/procinfo: remove useless assignment

Ferruh Yigit ferruh.yigit at intel.com
Tue Nov 17 18:14:35 CET 2020


'flag' initialized to '0' but it is overwritten later, initial
assignment can be removed.

Fixes: 0101a0ec6217 ("app/procinfo: add --show-mempool")
Cc: stable at dpdk.org

Signed-off-by: Ferruh Yigit <ferruh.yigit at intel.com>
---
Cc: vipin.varghese at intel.com
---
 app/proc-info/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/proc-info/main.c b/app/proc-info/main.c
index dc5cc92209..52975842fa 100644
--- a/app/proc-info/main.c
+++ b/app/proc-info/main.c
@@ -1264,7 +1264,7 @@ show_ring(char *name)
 static void
 show_mempool(char *name)
 {
-	uint64_t flags = 0;
+	uint64_t flags;
 
 	snprintf(bdr_str, MAX_STRING_LEN, " show - MEMPOOL ");
 	STATS_BDR_STR(10, bdr_str);
-- 
2.26.2



More information about the dev mailing list