[PATCH] app/testpmd: fix compile error
Ke Zhang
ke1x.zhang at intel.com
Wed Feb 8 06:23:40 CET 2023
[ upstream commit f99f2e55af7a49a6ee6555a5554847094086017f]
variable 'c' is set but not used, it should be cleard.
Fixes: 938a184a1870 ("app/testpmd: implement basic support for flow API")
Signed-off-by: Ke Zhang <ke1x.zhang at intel.com>
---
app/test-pmd/config.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c
index 9f96e77ba3..a04ce0ec64 100644
--- a/app/test-pmd/config.c
+++ b/app/test-pmd/config.c
@@ -1457,7 +1457,6 @@ port_flow_destroy(portid_t port_id, uint32_t n, const uint32_t *rule)
{
struct rte_port *port;
struct port_flow **tmp;
- uint32_t c = 0;
int ret = 0;
if (port_id_is_invalid(port_id, ENABLED_WARN) ||
@@ -1490,7 +1489,6 @@ port_flow_destroy(portid_t port_id, uint32_t n, const uint32_t *rule)
}
if (i == n)
tmp = &(*tmp)->next;
- ++c;
}
return ret;
}
--
2.25.1
More information about the stable
mailing list