net/kni: remove unnecessary null check

Coverity issue: 1419721
Fixes: 75e2bc54c0 ("net/kni: add KNI PMD")

Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
This commit is contained in:
Ferruh Yigit 2017-04-11 14:51:29 +01:00
parent 4c322f1f5f
commit 3a89f00b7d

View File

@ -486,12 +486,10 @@ eth_kni_remove(struct rte_vdev_device *vdev)
eth_kni_dev_stop(eth_dev);
if (eth_dev->data) {
internals = eth_dev->data->dev_private;
rte_kni_release(internals->kni);
internals = eth_dev->data->dev_private;
rte_kni_release(internals->kni);
rte_free(internals);
}
rte_free(internals);
rte_free(eth_dev->data);
rte_eth_dev_release_port(eth_dev);