Skip to content

Commit

Permalink
vhost: fix build with clang 15
Browse files Browse the repository at this point in the history
[ upstream commit 6546b60 ]

This variable is not used.

Fixes: abeb865 ("vhost: remove copy threshold for async path")

Signed-off-by: David Marchand <david.marchand@redhat.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Acked-by: Tyler Retzlaff <roretzla@linux.microsoft.com>
  • Loading branch information
david-marchand authored and kevintraynor committed Nov 23, 2022
1 parent 2d03c4e commit d116a5e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/vhost/virtio_net.c
Expand Up @@ -1672,7 +1672,6 @@ virtio_dev_rx_async_submit_packed(struct virtio_net *dev,
struct rte_mbuf **pkts, uint32_t count)
{
uint32_t pkt_idx = 0;
uint32_t remained = count;
int32_t n_xfer;
uint16_t num_buffers;
uint16_t num_descs;
Expand All @@ -1698,7 +1697,6 @@ virtio_dev_rx_async_submit_packed(struct virtio_net *dev,
pkts_info[slot_idx].mbuf = pkts[pkt_idx];

pkt_idx++;
remained--;
vq_inc_last_avail_packed(vq, num_descs);
} while (pkt_idx < count);

Expand Down

0 comments on commit d116a5e

Please sign in to comment.