RDMA/bnxt_re: Remove set but not used variable 'dev_attr'
authorYueHaibing <yuehaibing@huawei.com>
Thu, 27 Feb 2020 06:45:42 +0000 (06:45 +0000)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 2 Mar 2020 15:10:38 +0000 (11:10 -0400)
commita0b404a98e274b5fc0cfb7c108d99127d482e5ff
treec9278946605a2d16b54660247dbb228dd72c089d
parent6be2067d1e31477354b08d1ac85ff9ec6dec898e
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 8dae419f9ec7 ("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>
drivers/infiniband/hw/bnxt_re/ib_verbs.c