git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a3a6a3d
)
net/netvsc: remove useless condition
author
Stephen Hemminger
<sthemmin@microsoft.com>
Wed, 27 Mar 2019 21:08:42 +0000
(14:08 -0700)
committer
Ferruh Yigit
<ferruh.yigit@intel.com>
Fri, 29 Mar 2019 16:25:32 +0000
(17:25 +0100)
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>
drivers/net/netvsc/hn_rxtx.c
patch
|
blob
|
history
diff --git
a/drivers/net/netvsc/hn_rxtx.c
b/drivers/net/netvsc/hn_rxtx.c
index
fecd698
..
c67e9ae
100644
(file)
--- 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]++;
}