examples/ioat: fix unchecked return value
authorPraveen Shetty <praveen.shetty@intel.com>
Thu, 28 Nov 2019 11:27:14 +0000 (11:27 +0000)
committerDavid Marchand <david.marchand@redhat.com>
Thu, 13 Feb 2020 13:43:56 +0000 (14:43 +0100)
commit4c2af82e542c51175781aebf8f1a9ccfef823a11
treebcc6c783c72924b82233ce3307fd17e87fe9a609
parent899f6de24bb6504d56369aef5f55bb370d58784d
examples/ioat: fix unchecked return value

patch checks the return value of function rte_eth_dev_info_get,
if return value is negative error message printed on the console.

Coverity issue: 350361
Fixes: c8e6ceecebc1 ("examples/ioat: add new sample app for ioat driver")
Cc: stable@dpdk.org
Signed-off-by: Praveen Shetty <praveen.shetty@intel.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
examples/ioat/ioatfwd.c