git: 442f26c2bccc - stable/13 - sctp: tweak panic message

From: Dimitry Andric <dim_at_FreeBSD.org>
Date: Sun, 09 Apr 2023 21:35:50 UTC
The branch stable/13 has been updated by dim:

URL: https://cgit.FreeBSD.org/src/commit/?id=442f26c2bccc754be1f9c725181b13ff7600310c

commit 442f26c2bccc754be1f9c725181b13ff7600310c
Author:     Michael Tuexen <tuexen@FreeBSD.org>
AuthorDate: 2022-08-03 15:28:15 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2023-04-09 20:20:13 +0000

    sctp: tweak panic message
    
    MFC after:      1 week
    
    (cherry picked from commit 979bc32c7c14f944a340058fcd1a580a7492f785)
---
 sys/netinet/sctp_indata.c | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/sys/netinet/sctp_indata.c b/sys/netinet/sctp_indata.c
index aa6787257a13..b8bfaf164904 100644
--- a/sys/netinet/sctp_indata.c
+++ b/sys/netinet/sctp_indata.c
@@ -3837,10 +3837,9 @@ static int
 sctp_fs_audit(struct sctp_association *asoc)
 {
 	struct sctp_tmit_chunk *chk;
-	int inflight = 0, inbetween = 0;
+	int inflight = 0, resend = 0, inbetween = 0, acked = 0, above = 0;
 	int ret;
 #ifndef INVARIANTS
-	int resend = 0, acked = 0, above = 0;
 	int entry_flight, entry_cnt;
 #endif
 
@@ -3860,19 +3859,13 @@ sctp_fs_audit(struct sctp_association *asoc)
 			    chk->snd_count);
 			inflight++;
 		} else if (chk->sent == SCTP_DATAGRAM_RESEND) {
-#ifndef INVARIANTS
 			resend++;
-#endif
 		} else if (chk->sent < SCTP_DATAGRAM_ACKED) {
 			inbetween++;
 		} else if (chk->sent > SCTP_DATAGRAM_ACKED) {
-#ifndef INVARIANTS
 			above++;
-#endif
 		} else {
-#ifndef INVARIANTS
 			acked++;
-#endif
 		}
 	}