summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <sthemmin@microsoft.com>2019-03-27 14:08:42 -0700
committerFerruh Yigit <ferruh.yigit@intel.com>2019-03-29 17:25:32 +0100
commit204109c5d4a8bdd6787a43a113f7f987aae6623c (patch)
tree554d7f04e095793b7eb8dc3aab439b3d25e97e1f
parenta3a6a3d94f7efd8fe5d4db97823085bf3a0b2ac5 (diff)
downloaddpdk-next-eventdev-204109c5d4a8bdd6787a43a113f7f987aae6623c.zip
dpdk-next-eventdev-204109c5d4a8bdd6787a43a113f7f987aae6623c.tar.gz
dpdk-next-eventdev-204109c5d4a8bdd6787a43a113f7f987aae6623c.tar.xz
net/netvsc: 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: 4e9c73e96e83 ("net/netvsc: add Hyper-V network device") Cc: stable@dpdk.org Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com> Acked-by: Rami Rosen <ramirose@gmail.com>
-rw-r--r--drivers/net/netvsc/hn_rxtx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/netvsc/hn_rxtx.c b/drivers/net/netvsc/hn_rxtx.c
index fecd698..c67e9ae 100644
--- a/drivers/net/netvsc/hn_rxtx.c
+++ b/drivers/net/netvsc/hn_rxtx.c
@@ -123,7 +123,7 @@ hn_update_packet_stats(struct hn_stats *stats, const struct rte_mbuf *m)
stats->size_bins[0]++;
else if (s < 1519)
stats->size_bins[6]++;
- else if (s >= 1519)
+ else
stats->size_bins[7]++;
}