git: eb9784f245b3 - stable/13 - pfctl: remove unused variable

From: Kristof Provost <kp_at_FreeBSD.org>
Date: Tue, 15 Mar 2022 15:20:10 UTC
The branch stable/13 has been updated by kp:

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

commit eb9784f245b32c5bd86693beb0b45c319671fe45
Author:     Kristof Provost <kp@FreeBSD.org>
AuthorDate: 2022-03-08 11:22:50 +0000
Commit:     Kristof Provost <kp@FreeBSD.org>
CommitDate: 2022-03-15 02:51:15 +0000

    pfctl: remove unused variable
    
    MFC after:      1 week
    Sponsored by:   Rubicon Communications, LLC ("Netgate")
    
    (cherry picked from commit c4e49c3a65df1e806399962e27eb47a0f611223d)
---
 sbin/pfctl/pfctl_optimize.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/sbin/pfctl/pfctl_optimize.c b/sbin/pfctl/pfctl_optimize.c
index cb5578840672..d999734a906c 100644
--- a/sbin/pfctl/pfctl_optimize.c
+++ b/sbin/pfctl/pfctl_optimize.c
@@ -817,7 +817,6 @@ block_feedback(struct pfctl *pf, struct superblock *block)
 {
 	TAILQ_HEAD( , pf_opt_rule) queue;
 	struct pf_opt_rule *por1, *por2;
-	u_int64_t total_count = 0;
 	struct pfctl_rule a, b;
 
 
@@ -827,8 +826,6 @@ block_feedback(struct pfctl *pf, struct superblock *block)
 	 */
 	TAILQ_FOREACH(por1, &block->sb_profiled_block->sb_rules, por_entry) {
 		comparable_rule(&a, &por1->por_rule, DC);
-		total_count += por1->por_rule.packets[0] +
-		    por1->por_rule.packets[1];
 		TAILQ_FOREACH(por2, &block->sb_rules, por_entry) {
 			if (por2->por_profile_count)
 				continue;