git: 578d8f93983a - stable/12 - Fix unused variable warning in tcp_hpts.c

From: Dimitry Andric <dim_at_FreeBSD.org>
Date: Sun, 21 Aug 2022 11:29:43 UTC
The branch stable/12 has been updated by dim:

URL: https://cgit.FreeBSD.org/src/commit/?id=578d8f93983a4a2f9a16683b4d227005b3b92414

commit 578d8f93983a4a2f9a16683b4d227005b3b92414
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2022-08-15 18:14:39 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2022-08-21 11:26:10 +0000

    Fix unused variable warning in tcp_hpts.c
    
    With clang 15, the following -Werror warning is produced:
    
        sys/netinet/tcp_hpts.c:1114:10: error: variable 'paced_cnt' set but not used [-Werror,-Wunused-but-set-variable]
                int32_t paced_cnt = 0;
                        ^
    
    The 'paced_cnt' variable was in tcp_hpts.c when it was first added, but
    it appears to have been a debugging aid that has never been used, so
    remove it.
    
    MFC after:      3 days
    
    (cherry picked from commit b33bfe6e157429ad764e9a883a5e3a194a6d1f9f)
---
 sys/netinet/tcp_hpts.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/sys/netinet/tcp_hpts.c b/sys/netinet/tcp_hpts.c
index 5b7939006050..1ea0bd1148f9 100644
--- a/sys/netinet/tcp_hpts.c
+++ b/sys/netinet/tcp_hpts.c
@@ -1349,7 +1349,6 @@ tcp_hptsi(struct tcp_hpts_entry *hpts)
 	struct inpcb *inp = NULL, *ninp;
 	struct timeval tv;
 	int32_t ticks_to_run, i, error;
-	int32_t paced_cnt = 0;
 	int32_t loop_cnt = 0;
 	int32_t did_prefetch = 0;
 	int32_t prefetch_ninp = 0;
@@ -1462,7 +1461,6 @@ again:
 		while ((inp = TAILQ_FIRST(&hpts->p_hptss[hpts->p_runningtick])) != NULL) {
 			/* For debugging */
 			hpts->p_inp = inp;
-			paced_cnt++;
 #ifdef INVARIANTS
 			if (hpts->p_runningtick != inp->inp_hptsslot) {
 				panic("Hpts:%p inp:%p slot mis-aligned %u vs %u",