[06/11] net/ice: fix build with clang 15
Checks
Commit Message
This variable is not used.
Fixes: 0d8d7bd720ba ("net/ice: support DDP dump switch rule binary")
Cc: stable@dpdk.org
Signed-off-by: David Marchand <david.marchand@redhat.com>
---
drivers/net/ice/ice_ddp_package.c | 3 ---
1 file changed, 3 deletions(-)
@@ -439,7 +439,6 @@ ice_dump_switch(struct rte_eth_dev *dev, uint8_t **buff2, uint32_t *size)
int i = 0;
uint16_t tbl_id = 0;
uint32_t tbl_idx = 0;
- int tbl_cnt = 0;
uint8_t *buffer = *buff2;
hw = ICE_DEV_PRIVATE_TO_HW(dev->data->dev_private);
@@ -481,10 +480,8 @@ ice_dump_switch(struct rte_eth_dev *dev, uint8_t **buff2, uint32_t *size)
free(buff);
- tbl_cnt++;
if (tbl_idx == 0xffffffff) {
tbl_idx = 0;
- tbl_cnt = 0;
memset(buffer, '\n', sizeof(char));
buffer++;
offset = 0;