Skip to content

Commit

Permalink
REVIEW: use PTR_OFFSET for dm ptr arith
Browse files Browse the repository at this point in the history
  • Loading branch information
samnordmann committed Jan 2, 2025
1 parent 8312300 commit 4bd5995
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/tl/mlx5/tl_mlx5_dm.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ static void ucc_tl_mlx5_dm_chunk_init(ucc_mpool_t *mp, //NOLINT
c->posted_sends = 0;
c->posted_all = 0;
c->completed_sends = 0;
team->dm_offset =
team->dm_offset + UCC_TL_MLX5_TEAM_LIB(team)->cfg.dm_buf_size *
UCC_TL_MLX5_TEAM_LIB(team)->cfg.block_batch_size;
team->dm_offset = PTR_OFFSET(
team->dm_offset, UCC_TL_MLX5_TEAM_LIB(team)->cfg.dm_buf_size *
UCC_TL_MLX5_TEAM_LIB(team)->cfg.block_batch_size);
}

static ucc_mpool_ops_t ucc_tl_mlx5_dm_ops = {
Expand Down

0 comments on commit 4bd5995

Please sign in to comment.