We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c23af5 commit 6407c69Copy full SHA for 6407c69
drivers/infiniband/hw/irdma/uk.c
@@ -931,17 +931,14 @@ enum irdma_status_code irdma_uk_mw_bind(struct irdma_qp_uk *qp,
931
enum irdma_status_code irdma_uk_post_receive(struct irdma_qp_uk *qp,
932
struct irdma_post_rq_info *info)
933
{
934
- u32 total_size = 0, wqe_idx, i, byte_off;
+ u32 wqe_idx, i, byte_off;
935
u32 addl_frag_cnt;
936
__le64 *wqe;
937
u64 hdr;
938
939
if (qp->max_rq_frag_cnt < info->num_sges)
940
return IRDMA_ERR_INVALID_FRAG_COUNT;
941
942
- for (i = 0; i < info->num_sges; i++)
943
- total_size += info->sg_list[i].len;
944
-
945
wqe = irdma_qp_get_next_recv_wqe(qp, &wqe_idx);
946
if (!wqe)
947
return IRDMA_ERR_QP_TOOMANY_WRS_POSTED;
0 commit comments