RDMA/hw/qib/qib_tx: Remove variable n
Subsystems (2)
PATCH 1/1 RDMA/hw/qib/qib_tx: Remove variable n
The variable n being incremented but it is never referenced, it is redundant and can be removed.
Signed-off-by Colin Ian King <[email protected]>
--- drivers/infiniband/hw/qib/qib_tx.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
drivers/infiniband/hw/qib/qib_tx.c +1 -4
@@ -82,7 +82,6 @@ int qib_disarm_piobufs_ifneeded(struct qib_ctxtdata *rcd)struct qib_devdata *dd = rcd->dd;unsigned i;unsigned last; -unsigned n =0 ; last = rcd->pio_base + rcd->piocnt;/*
@@ -102,10 +101,8 @@ int qib_disarm_piobufs_ifneeded(struct qib_ctxtdata *rcd) }spin_lock_irq (&dd->pioavail_lock);for (i = rcd->pio_base; i < last; i++) { -if (__test_and_clear_bit (i, dd->pio_need_disarm)) { - n++; +if (__test_and_clear_bit (i, dd->pio_need_disarm)) dd->f_sendctrl (rcd->ppd,QIB_SENDCTRL_DISARM_BUF (i)); - } }spin_unlock_irq (&dd->pioavail_lock);return 0 ;
Signature · 1 line
2.37.3
Leon Romanovsky
AppliedQuoted 4 lines · Colin Ian King
The variable n being incremented but it is never referenced, it is redundant and can be removed.
Applied, thanks!
[1/1] RDMA/hw/qib/qib_tx: Remove variable n
https://git.kernel.org/rdma/rdma/c/d0b9f28f0da280
Best regards,
Signature · 1 line
Leon Romanovsky <[email protected]>