The driver reference in the bus-specific device cannot be NULL since calling the .remove is done after dereferencing this pointer.
Signed-off-by: David Marchand <[email protected]> Acked-by: Anoob Joseph <[email protected]> --- drivers/crypto/octeontx/otx_cryptodev.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/crypto/octeontx/otx_cryptodev.c b/drivers/crypto/octeontx/otx_cryptodev.c index b5ab937c3a..b2f6f53ee3 100644 --- a/drivers/crypto/octeontx/otx_cryptodev.c +++ b/drivers/crypto/octeontx/otx_cryptodev.c @@ -87,9 +87,6 @@ otx_cpt_pci_remove(struct rte_pci_device *pci_dev) if (cryptodev == NULL) return -ENODEV; - if (pci_dev->driver == NULL) - return -ENODEV; - dev_priv = cryptodev->data->dev_private; /* free crypto device */ -- 2.53.0

