Skip to content

Commit

Permalink
TEST: init dci ptrs to null
Browse files Browse the repository at this point in the history
  • Loading branch information
samnordmann committed Feb 27, 2025
1 parent 8ad2c7f commit 2f83e36
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions test/gtest/tl/mlx5/test_tl_mlx5_qps.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,11 @@ typedef ucc_status_t (*ucc_tl_mlx5_create_ah_fn_t)(struct ibv_pd * pd,

class test_tl_mlx5_dc : public test_tl_mlx5_qp {
public:
struct ibv_qp * dct_qp;
struct ibv_qp *dct_qp = nullptr;
struct ibv_ah *ah = nullptr;
struct ibv_srq *srq = nullptr;
ucc_tl_mlx5_dci_t dci = {};
uint32_t dct_qpn;
struct ibv_srq * srq;
ucc_tl_mlx5_dci_t dci;
struct ibv_ah * ah;
ucc_tl_mlx5_init_dct_fn_t init_dct;
ucc_tl_mlx5_init_dci_fn_t init_dci;
ucc_tl_mlx5_create_ah_fn_t create_ah;
Expand All @@ -146,11 +146,6 @@ class test_tl_mlx5_dc : public test_tl_mlx5_qp {
"ucc_tl_mlx5_create_ah");
ASSERT_EQ(nullptr, dlerror());

ah = NULL;
dct_qp = NULL;
dci.dci_qp = NULL;
srq = NULL;

memset(&srq_attr, 0, sizeof(struct ibv_srq_init_attr));
srq_attr.attr.max_wr = 1;
srq_attr.attr.max_sge = 1;
Expand Down

0 comments on commit 2f83e36

Please sign in to comment.