examples/bbdev: fix unchecked return of stats
authorAmr Mokhtar <amr.mokhtar@intel.com>
Wed, 31 Jan 2018 14:40:25 +0000 (14:40 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 31 Jan 2018 17:51:02 +0000 (18:51 +0100)
commit200d0e7a708c8a99e1e4b8fe98d56f368d3b6187
treec019253d2a9650bf77f83096499ac348fcaf8f51
parent2a5aa6e7a528b16db7da507c975ce3d169d232d4
examples/bbdev: fix unchecked return of stats

Added a check on rte_bbdev_stats_get() return before
printing out the statistics results.

Coverity issue: 257018
Fixes: 1ffee690eaa1 ("examples/bbdev: add sample app")

Signed-off-by: Amr Mokhtar <amr.mokhtar@intel.com>
examples/bbdev_app/main.c