The branch main has been updated by kp:

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

commit c4e49c3a65df1e806399962e27eb47a0f611223d
Author:     Kristof Provost <k...@freebsd.org>
AuthorDate: 2022-03-08 11:22:50 +0000
Commit:     Kristof Provost <k...@freebsd.org>
CommitDate: 2022-03-08 12:57:46 +0000

    pfctl: remove unused variable
    
    MFC after:      1 week
    Sponsored by:   Rubicon Communications, LLC ("Netgate")
---
 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;

Reply via email to