OSDN Git Service

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)
commit322f3d45a17f64494152bd5583b68c8855b539c0
treecc4aad9bdfee1645bbea5bfc78fc49dd1eba1def
parent744b7bdfa79edb30bb7d5f9ae43b65e0d147533a
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: fddcbbb02af4 ("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