mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-08 17:49:45 +00:00
RDMA/bnxt_re: Remove set but not used variable 'dev_attr'
Fixes gcc '-Wunused-but-set-variable' warning:
drivers/infiniband/hw/bnxt_re/ib_verbs.c: In function 'bnxt_re_create_gsi_qp':
drivers/infiniband/hw/bnxt_re/ib_verbs.c:1283:30: warning:
variable 'dev_attr' set but not used [-Wunused-but-set-variable]
commit 8dae419f9e
("RDMA/bnxt_re: Refactor queue pair creation code")
involved this, but not used, so remove it.
Link: https://lore.kernel.org/r/20200227064542.91205-1-yuehaibing@huawei.com
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
This commit is contained in:
parent
6be2067d1e
commit
a0b404a98e
1 changed files with 0 additions and 2 deletions
|
@ -1280,14 +1280,12 @@ static int bnxt_re_create_shadow_gsi(struct bnxt_re_qp *qp,
|
||||||
static int bnxt_re_create_gsi_qp(struct bnxt_re_qp *qp, struct bnxt_re_pd *pd,
|
static int bnxt_re_create_gsi_qp(struct bnxt_re_qp *qp, struct bnxt_re_pd *pd,
|
||||||
struct ib_qp_init_attr *init_attr)
|
struct ib_qp_init_attr *init_attr)
|
||||||
{
|
{
|
||||||
struct bnxt_qplib_dev_attr *dev_attr;
|
|
||||||
struct bnxt_re_dev *rdev;
|
struct bnxt_re_dev *rdev;
|
||||||
struct bnxt_qplib_qp *qplqp;
|
struct bnxt_qplib_qp *qplqp;
|
||||||
int rc = 0;
|
int rc = 0;
|
||||||
|
|
||||||
rdev = qp->rdev;
|
rdev = qp->rdev;
|
||||||
qplqp = &qp->qplib_qp;
|
qplqp = &qp->qplib_qp;
|
||||||
dev_attr = &rdev->dev_attr;
|
|
||||||
|
|
||||||
qplqp->rq_hdr_buf_size = BNXT_QPLIB_MAX_QP1_RQ_HDR_SIZE_V2;
|
qplqp->rq_hdr_buf_size = BNXT_QPLIB_MAX_QP1_RQ_HDR_SIZE_V2;
|
||||||
qplqp->sq_hdr_buf_size = BNXT_QPLIB_MAX_QP1_SQ_HDR_SIZE_V2;
|
qplqp->sq_hdr_buf_size = BNXT_QPLIB_MAX_QP1_SQ_HDR_SIZE_V2;
|
||||||
|
|
Loading…
Reference in a new issue