The two macros are identical, but sparse notices. Signed-off-by: Jason Gunthorpe <jgunthorpe@xxxxxxxxxxxxxxxxxxxx> --- providers/mlx4/cq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/providers/mlx4/cq.c b/providers/mlx4/cq.c index 844e4da1305c63..f0a47ae374a689 100644 --- a/providers/mlx4/cq.c +++ b/providers/mlx4/cq.c @@ -294,7 +294,7 @@ static inline int mlx4_parse_cqe(struct mlx4_cq *cq, *pwr_id = wq->wrid[wq->tail & (wq->wqe_cnt - 1)]; ++wq->tail; } else if (srq) { - wqe_index = htobe16(cqe->wqe_index); + wqe_index = be16toh(cqe->wqe_index); *pwr_id = srq->wrid[wqe_index]; mlx4_free_srq_wqe(srq, wqe_index); } else { -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html