regex/mlx5: fix redundancy in device removal
authorMichael Baum <michaelba@nvidia.com>
Mon, 12 Jul 2021 07:06:44 +0000 (10:06 +0300)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 22 Jul 2021 13:19:37 +0000 (15:19 +0200)
commit34c84ebbbcc8fc71901e17899f1bf1b1ba815084
tree853de09af731e8b311a6168464b06ca100ab5b63
parenta1fcde8c8083233d0ef747ae9156c23e8c65ae73
regex/mlx5: fix redundancy in device removal

In the 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>
Acked-by: Ori Kam <orika@nvidia.com>
drivers/regex/mlx5/mlx5_regex.c