bus/ifpga: fix error check in unplug
authorRosen Xu <rosen.xu@intel.com>
Tue, 22 May 2018 10:26:16 +0000 (18:26 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 22 May 2018 17:15:58 +0000 (19:15 +0200)
commit07b4a8be61e9f0e2af2d15685ddf2f9eb5ba162e
treefedc3e9891f08bde56e01d0d73fe10e309ad9c38
parentf14b264f65043ae163285fd9089e9d1822d598b7
bus/ifpga: fix error check in unplug

The control variable should be afu_dev not dev.

Coverity issue: 279455
Fixes: 05fa3d4a6539 ("bus/ifpga: add Intel FPGA bus library")
Cc: stable@dpdk.org
Signed-off-by: Rosen Xu <rosen.xu@intel.com>
drivers/bus/ifpga/ifpga_bus.c