]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/bnxt: Delete 'nq_ptr' variable which is not used
authorLeon Romanovsky <leonro@mellanox.com>
Sun, 19 Apr 2020 13:20:46 +0000 (16:20 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 22 Apr 2020 20:05:13 +0000 (17:05 -0300)
commitecad5ea3beed9f59cf39cf0c3e4aba4d81e5e321
treecc4aad9bdfee1645bbea5bfc78fc49dd1eba1def
parentc23c4a7e615b654246ebc932b33ab615a28be3f8
RDMA/bnxt: Delete 'nq_ptr' variable which is not used

The variable "nq_ptr" is set but never used, this generates the following
warning while compiling kernel with W=1 option.

drivers/infiniband/hw/bnxt_re/qplib_fp.c: In function 'bnxt_qplib_service_nq':
drivers/infiniband/hw/bnxt_re/qplib_fp.c:303:25: warning:
   variable 'nq_ptr' set but not used [-Wunused-but-set-variable]
303 |  struct nq_base *nqe, **nq_ptr;
    |

Fixes: 2bc9f582d9ee ("RDMA/bnxt_re: Simplify obtaining queue entry from hw ring")
Link: https://lore.kernel.org/r/20200419132046.123887-1-leon@kernel.org
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/bnxt_re/qplib_fp.c