bitrate: fix unchecked return value
authorAndrius Sirvys <andrius.sirvys@intel.com>
Thu, 18 Apr 2019 08:52:06 +0000 (09:52 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 22 Apr 2019 22:19:06 +0000 (00:19 +0200)
commit72ec13b0a1192d7a1503c12474cb0f11d2efe087
treedf4dd1ee51aa4333e1f4147466928d388a54cff8
parent17250a2affdf88557911bbff086a00d05960a7ca
bitrate: fix unchecked return value

Checking the return value of rte_metrics_update_values, if failed
returning that value.
Coverity had picked up that that the return value wasn't being checked.

Coverity issue: 336863
Fixes: 2ad7ba9a6567 ("bitrate: add bitrate statistics library")
Cc: stable@dpdk.org
Signed-off-by: Andrius Sirvys <andrius.sirvys@intel.com>
Acked-by: Rami Rosen <ramirose@gmail.com>
Acked-by: John McNamara <john.mcnamara@intel.com>
lib/librte_bitratestats/rte_bitrate.c