mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-22 13:54:57 +08:00
RDMA/qib: Remove not-used 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 <colin.i.king@gmail.com> Link: https://lore.kernel.org/r/20221021172611.26763-1-colin.i.king@gmail.com Signed-off-by: Leon Romanovsky <leon@kernel.org>
This commit is contained in:
parent
c1842f34fc
commit
d0b9f28f0d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user