Skip to content

Commit 9e71244

Browse files
YueHaibingjgunthorpe
authored andcommitted
RDMA/bnxt_re: Remove set but not used variable 'qplib_ctx'
drivers/infiniband/hw/bnxt_re/main.c:1012:25: warning: variable ‘qplib_ctx’ set but not used [-Wunused-but-set-variable] Fixes: f86b31c ("RDMA/bnxt_re: Static NQ depth allocation") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: YueHaibing <[email protected]> Reviewed-by: Leon Romanovsky <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
1 parent 28b0865 commit 9e71244

File tree

1 file changed

+0
-2
lines changed
  • drivers/infiniband/hw/bnxt_re

1 file changed

+0
-2
lines changed

drivers/infiniband/hw/bnxt_re/main.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1009,7 +1009,6 @@ static void bnxt_re_free_res(struct bnxt_re_dev *rdev)
10091009
static int bnxt_re_alloc_res(struct bnxt_re_dev *rdev)
10101010
{
10111011
struct bnxt_re_ring_attr rattr = {};
1012-
struct bnxt_qplib_ctx *qplib_ctx;
10131012
int num_vec_created = 0;
10141013
int rc = 0, i;
10151014
u8 type;
@@ -1032,7 +1031,6 @@ static int bnxt_re_alloc_res(struct bnxt_re_dev *rdev)
10321031
if (rc)
10331032
goto dealloc_res;
10341033

1035-
qplib_ctx = &rdev->qplib_ctx;
10361034
for (i = 0; i < rdev->num_msix - 1; i++) {
10371035
struct bnxt_qplib_nq *nq;
10381036

0 commit comments

Comments
 (0)