git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
remove unnecessary null checks
[dpdk.git]
/
lib
/
bitratestats
/
rte_bitrate.c
diff --git
a/lib/bitratestats/rte_bitrate.c
b/lib/bitratestats/rte_bitrate.c
index
e23e38b
..
1664e48
100644
(file)
--- a/
lib/bitratestats/rte_bitrate.c
+++ b/
lib/bitratestats/rte_bitrate.c
@@
-80,7
+80,7
@@
rte_stats_bitrate_calc(struct rte_stats_bitrates *bitrate_data,
ret_code = rte_eth_stats_get(port_id, ð_stats);
if (ret_code != 0)
- return ret_code;
+ return ret_code
< 0 ? ret_code : -ret_code
;
port_data = &bitrate_data->port_stats[port_id];