vfio: fix uninitialized variable
authorAnatoly Burakov <anatoly.burakov@intel.com>
Fri, 1 Jun 2018 09:08:12 +0000 (10:08 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 13 Jul 2018 09:44:56 +0000 (11:44 +0200)
commitc63a42535ada8e4226b9a41bb7757d0d045f8a72
treef8cee8b2d4aa71c74b8490183cd055622fa54c1e
parent96712b33afa547a6b872f15e5e723e8120b33ad6
vfio: fix uninitialized variable

Some static analyzers complain about it, even though
value is never used if not initialized. To avoid additional
false positives about a potential null-pointer dereferences,
also add a null-check.

Bugzilla ID: 58
Fixes: ea2dc1066870 ("vfio: add multi container support")
Cc: stable@dpdk.org
Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
lib/librte_eal/linuxapp/eal/eal_vfio.c