On Sun, Apr 19, 2020 at 04:20:46PM +0300, Leon Romanovsky wrote: > From: Leon Romanovsky <leonro@xxxxxxxxxxxx> > > 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") > Signed-off-by: Leon Romanovsky <leonro@xxxxxxxxxxxx> > --- > drivers/infiniband/hw/bnxt_re/qplib_fp.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) Applied to for-next, thanks Jason