From: Stephen Hemminger Date: Wed, 27 Mar 2019 21:08:42 +0000 (-0700) Subject: net/netvsc: remove useless condition X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=204109c5d4a8bdd6787a43a113f7f987aae6623c;p=dpdk.git 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 Acked-by: Rami Rosen --- diff --git a/drivers/net/netvsc/hn_rxtx.c b/drivers/net/netvsc/hn_rxtx.c index fecd69887e..c67e9ae253 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]++; }