diff mbox series

[PATCH_v2,3/3] regex/mlx5: fix redundancy in PCI remove function

Message ID 20210705052730.2283962-3-michaelba@nvidia.com (mailing list archive)
State Superseded, archived
Delegated to: Thomas Monjalon
Headers show
Series [PATCH_v2,1/3] regex/mlx5: fix memory region unregistration | expand


Context Check Description
ci/checkpatch success coding style OK
ci/github-robot fail github build: failed
ci/Intel-compilation success Compilation OK

Commit Message

Michael Baum July 5, 2021, 5:27 a.m. UTC
In the PCI removal function, PMD releases all driver resources and
cancels the regexdev registry.

However, regexdev registration is accidentally canceled twice.

Remove one of them.

Fixes: b34d816363b5 ("regex/mlx5: support rules import")
Cc: stable@dpdk.org

Signed-off-by: Michael Baum <michaelba@nvidia.com>
 drivers/regex/mlx5/mlx5_regex.c | 2 --
 1 file changed, 2 deletions(-)
diff mbox series


diff --git a/drivers/regex/mlx5/mlx5_regex.c b/drivers/regex/mlx5/mlx5_regex.c
index f64dc2824c..1c5bf930ad 100644
--- a/drivers/regex/mlx5/mlx5_regex.c
+++ b/drivers/regex/mlx5/mlx5_regex.c
@@ -290,8 +290,6 @@  mlx5_regex_pci_remove(struct rte_pci_device *pci_dev)
 		if (priv->ctx)
-		if (priv->regexdev)
-			rte_regexdev_unregister(priv->regexdev);
 	return 0;