RDMA/qib: Remove not-used variable freeze_cnt
The variable freeze_cnt 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/20221021173504.27546-1-colin.i.king@gmail.com Signed-off-by: Leon Romanovsky <leon@kernel.org>
This commit is contained in:
parent
d0b9f28f0d
commit
5dc1b37d75
|
@ -799,12 +799,9 @@ static void qib_handle_6120_hwerrors(struct qib_devdata *dd, char *msg,
|
|||
hwerrs &= ~TXE_PIO_PARITY;
|
||||
}
|
||||
|
||||
if (!hwerrs) {
|
||||
static u32 freeze_cnt;
|
||||
|
||||
freeze_cnt++;
|
||||
if (!hwerrs)
|
||||
qib_6120_clear_freeze(dd);
|
||||
} else
|
||||
else
|
||||
isfatal = 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue