Skip to content

Commit 880245f

Browse files
jakemoronijgunthorpe
authored andcommitted
RDMA/irdma: Remove unused struct irdma_cq fields
These fields were set but not used anywhere, so remove them. Link: https://patch.msgid.link/r/[email protected] Signed-off-by: Jacob Moroni <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
1 parent 4bab6d9 commit 880245f

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

drivers/infiniband/hw/irdma/verbs.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2544,8 +2544,6 @@ static int irdma_create_cq(struct ib_cq *ibcq,
25442544
goto cq_free_rsrc;
25452545
}
25462546

2547-
iwcq->iwpbl = iwpbl;
2548-
iwcq->cq_mem_size = 0;
25492547
cqmr = &iwpbl->cq_mr;
25502548

25512549
if (rf->sc_dev.hw_attrs.uk_attrs.feature_flags &
@@ -2560,7 +2558,6 @@ static int irdma_create_cq(struct ib_cq *ibcq,
25602558
err_code = -EPROTO;
25612559
goto cq_free_rsrc;
25622560
}
2563-
iwcq->iwpbl_shadow = iwpbl_shadow;
25642561
cqmr_shadow = &iwpbl_shadow->cq_mr;
25652562
info.shadow_area_pa = cqmr_shadow->cq_pbl.addr;
25662563
cqmr->split = true;

drivers/infiniband/hw/irdma/verbs.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -140,21 +140,15 @@ struct irdma_srq {
140140
struct irdma_cq {
141141
struct ib_cq ibcq;
142142
struct irdma_sc_cq sc_cq;
143-
u16 cq_head;
144-
u16 cq_size;
145143
u16 cq_num;
146144
bool user_mode;
147145
atomic_t armed;
148146
enum irdma_cmpl_notify last_notify;
149-
u32 polled_cmpls;
150-
u32 cq_mem_size;
151147
struct irdma_dma_mem kmem;
152148
struct irdma_dma_mem kmem_shadow;
153149
struct completion free_cq;
154150
refcount_t refcnt;
155151
spinlock_t lock; /* for poll cq */
156-
struct irdma_pbl *iwpbl;
157-
struct irdma_pbl *iwpbl_shadow;
158152
struct list_head resize_list;
159153
struct irdma_cq_poll_info cur_cqe;
160154
struct list_head cmpl_generated;

0 commit comments

Comments
 (0)