Skip to contentSkip to conversation

RDMA/hw/qib/qib_iba6120: Remove variable freeze_cnt

PATCH Applied Colin Ian King 2 participants 2 messages Oct 21, 2022 – Oct 24, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 RDMA/hw/qib/qib_iba6120: Remove variable freeze_cnt

The variable freeze_cnt being incremented but it is never referenced, it is redundant and can be removed.

---
 drivers/infiniband/hw/qib/qib_iba6120.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
drivers/infiniband/hw/qib/qib_iba6120.c +2 -5
index aea571943768..23a81edf3f7a 100644
@@ -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;
 	}
 
Signature · 1 line
2.37.3