irdma: Remove unused uqp field from Completion Queue The `uqp` pointer inside the `send_cq` and `recv_cq` structs is completely unused. It is blindly written to during initialization but is never actually read back. Remove this vestigial field to clean up the code. Signed-off-by: Ying Xiao <eagleshaw@google.com>
diff --git a/providers/irdma/umain.h b/providers/irdma/umain.h index f40ffb6..3bfa4b7 100644 --- a/providers/irdma/umain.h +++ b/providers/irdma/umain.h
@@ -87,7 +87,6 @@ bool skip_sol; int comp_vector; uint32_t report_rtt; - struct irdma_uqp *uqp; struct irdma_cq_uk cq; struct list_head resize_list; /* for extended CQ completion fields */
diff --git a/providers/irdma/uverbs.c b/providers/irdma/uverbs.c index 76400aa..3d1c136 100644 --- a/providers/irdma/uverbs.c +++ b/providers/irdma/uverbs.c
@@ -1501,9 +1501,6 @@ verbs_cq.cq); iwuqp->recv_cq = container_of(attr->recv_cq, struct irdma_ucq, verbs_cq.cq); - iwuqp->send_cq->uqp = iwuqp; - iwuqp->recv_cq->uqp = iwuqp; - return 0; err_qp: ibv_cmd_dereg_mr(&iwuqp->vmr);