summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen@networkplumber.org>2019-03-27 14:08:43 -0700
committerFerruh Yigit <ferruh.yigit@intel.com>2019-03-29 17:25:32 +0100
commit5c67301273fff63d81c343cee164a3d87918b567 (patch)
tree79f52da0be23a4dcad7902293ac2700526c17974
parent204109c5d4a8bdd6787a43a113f7f987aae6623c (diff)
downloaddpdk-next-eventdev-5c67301273fff63d81c343cee164a3d87918b567.zip
dpdk-next-eventdev-5c67301273fff63d81c343cee164a3d87918b567.tar.gz
dpdk-next-eventdev-5c67301273fff63d81c343cee164a3d87918b567.tar.xz
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 <stephen@networkplumber.org> Acked-by: Rami Rosen <ramirose@gmail.com> Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
-rw-r--r--drivers/net/virtio/virtio_rxtx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/virtio/virtio_rxtx.c b/drivers/net/virtio/virtio_rxtx.c
index ee30084..e6f3706 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]++;
}