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:
parent
4c322f1f5f
commit
3a89f00b7d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user