net/ice: fix build with clang 15

This variable is not used.

Fixes: 0d8d7bd720 ("net/ice: support DDP dump switch rule binary")
Cc: stable@dpdk.org

Signed-off-by: David Marchand <david.marchand@redhat.com>
Acked-by: Tyler Retzlaff <roretzla@linux.microsoft.com>
This commit is contained in:
David Marchand 2022-11-18 09:53:08 +01:00
parent d9298902d8
commit a63553111a

View File

@ -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;