From: Stephen Hemminger Date: Wed, 27 Mar 2019 21:08:43 +0000 (-0700) Subject: net/virtio: remove useless condition X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=5c67301273fff63d81c343cee164a3d87918b567;p=dpdk.git net/virtio: remove useless condition Since previous test is for mtu < 1519 the next else if is always true. This causes the lgtm static tool to complain. Not a real issue, just cosmetic. Fixes: 76d4c652e07d ("virtio: add extended stats") Cc: stable@dpdk.org Signed-off-by: Stephen Hemminger Acked-by: Rami Rosen Reviewed-by: Maxime Coquelin --- diff --git a/drivers/net/virtio/virtio_rxtx.c b/drivers/net/virtio/virtio_rxtx.c index ee30084e41..e6f3706d6f 100644 --- a/drivers/net/virtio/virtio_rxtx.c +++ b/drivers/net/virtio/virtio_rxtx.c @@ -1109,7 +1109,7 @@ virtio_update_packet_stats(struct virtnet_stats *stats, struct rte_mbuf *mbuf) stats->size_bins[0]++; else if (s < 1519) stats->size_bins[6]++; - else if (s >= 1519) + else stats->size_bins[7]++; }