compress/mlx5: fix double close of device context
[dpdk.git] / drivers / compress / mlx5 / mlx5_compress.c
index bb0dc3a..82b871b 100644 (file)
@@ -723,7 +723,6 @@ mlx5_compress_dev_probe(struct mlx5_common_device *cdev)
                && !attr->mmo_compress_qp_en && !attr->mmo_compress_sq_en
                && !attr->mmo_dma_qp_en && !attr->mmo_dma_sq_en) {
                DRV_LOG(ERR, "Not enough capabilities to support compress operations, maybe old FW/OFED version?");
-               claim_zero(mlx5_glue->close_device(cdev->ctx));
                rte_errno = ENOTSUP;
                return -ENOTSUP;
        }