git: a90d8b30f07e - stable/12 - pfctl: remove unused variable
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 15 Mar 2022 15:20:09 UTC
The branch stable/12 has been updated by kp:
URL: https://cgit.FreeBSD.org/src/commit/?id=a90d8b30f07eeeafc2e72f86386abcdb9a75c060
commit a90d8b30f07eeeafc2e72f86386abcdb9a75c060
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:12 +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;