diff --git a/src/uct/ib/rc/accel/rc_mlx5_common.h b/src/uct/ib/rc/accel/rc_mlx5_common.h index 4a881d729b5..5bb6fffc853 100644 --- a/src/uct/ib/rc/accel/rc_mlx5_common.h +++ b/src/uct/ib/rc/accel/rc_mlx5_common.h @@ -117,7 +117,6 @@ static UCS_F_ALWAYS_INLINE unsigned uct_rc_mlx5_iface_common_poll_rx(uct_rc_mlx5_iface_common_t *mlx5_common_iface, uct_rc_iface_t *rc_iface, char have_scat_to_cqe) { - uct_ib_mlx5_srq_seg_t *seg = NULL; uct_ib_iface_recv_desc_t *desc = NULL; uct_rc_iface_ops_t *rc_ops; uct_rc_hdr_t *hdr; @@ -146,7 +145,6 @@ uct_rc_mlx5_iface_common_poll_rx(uct_rc_mlx5_iface_common_t *mlx5_common_iface, byte_len = ntohl(cqe->byte_cnt); wqe_ctr = ntohs(cqe->wqe_counter); - seg = uct_ib_mlx5_srq_get_wqe(&mlx5_common_iface->rx.srq, wqe_ctr); desc = mlx5_common_iface->rx.dinfo[wqe_ctr].desc; /* Get a pointer to AM header (after which comes the payload)