Skip to content

Commit

Permalink
libhns: Remove unused return value
Browse files Browse the repository at this point in the history
parse_cqe_for_resp() will never fail and always returns 0. Remove the
unused return value.

Fixes: 061f7e1 ("libhns: Refactor the poll one interface")
Signed-off-by: Junxian Huang <[email protected]>
  • Loading branch information
Junxian Huang authored and Junxian Huang committed Apr 18, 2024
1 parent 3be5661 commit 9e1847c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions providers/hns/hns_roce_u_hw_v2.c
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ static void parse_cqe_for_srq(struct hns_roce_v2_cqe *cqe, struct ibv_wc *wc,
handle_recv_cqe_inl_from_srq(cqe, srq);
}

static int parse_cqe_for_resp(struct hns_roce_v2_cqe *cqe, struct ibv_wc *wc,
static void parse_cqe_for_resp(struct hns_roce_v2_cqe *cqe, struct ibv_wc *wc,
struct hns_roce_qp *hr_qp)
{
struct hns_roce_wq *wq;
Expand All @@ -523,8 +523,6 @@ static int parse_cqe_for_resp(struct hns_roce_v2_cqe *cqe, struct ibv_wc *wc,
handle_recv_cqe_inl_from_rq(cqe, hr_qp);
else if (hr_reg_read(cqe, CQE_RQ_INLINE))
handle_recv_rq_inl(cqe, hr_qp);

return 0;
}

static void parse_cqe_for_req(struct hns_roce_v2_cqe *cqe, struct ibv_wc *wc,
Expand Down

0 comments on commit 9e1847c

Please sign in to comment.