From nobody Tue Mar 15 15:20:10 2022 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 13D921A193BE; Tue, 15 Mar 2022 15:20:11 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KHxt24yXlz4b4Z; Tue, 15 Mar 2022 15:20:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1647357610; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=htXsvUfCWVFh8anpzlkKTLs4QVxtLg5IZ/YNtj0zbhk=; b=k5NtW6hMY7NYlKtnkSsGoizYK1UCSsm+12rCWWDKuGLGaoy14gHyx1IJsKG3aKMvkyjy5P 5wKyU7DVnVgsI455FpeVE0p+U/dXXW+czQtHJ4A5zqWam7qHmJ4jGaciwtKmgUkd4h4IRX RawWTV49uu2i1eRRHtCGlfyK3DU1xdBjz3ZcdL0+ZzlsyvE+9op1X3HzoU7HwiAJ65YHGt mtQTLnlwl1ZyFsOXnCqrult5XP0fIXd/DMUIftQl6W3FHzVuGFV4ns2x/4tdmTUApu8a0K rEJ7vA2cL63vL4sXNoh2LZ6wheXz7MtzmBZLHA+CSbVHLRK2DWXcmGOwT2keIw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 8539D23D73; Tue, 15 Mar 2022 15:20:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 22FFKA6l033643; Tue, 15 Mar 2022 15:20:10 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 22FFKAl9033640; Tue, 15 Mar 2022 15:20:10 GMT (envelope-from git) Date: Tue, 15 Mar 2022 15:20:10 GMT Message-Id: <202203151520.22FFKAl9033640@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Kristof Provost Subject: git: eb9784f245b3 - stable/13 - pfctl: remove unused variable List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kp X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: eb9784f245b32c5bd86693beb0b45c319671fe45 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1647357610; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=htXsvUfCWVFh8anpzlkKTLs4QVxtLg5IZ/YNtj0zbhk=; b=ZwRoyzMFBym/IPv7i4eXUVWM2EcYC/WpCf6EWSuiMoYjQfI++QlTt6Se0nQZubE8Ls1Wq5 79qL8/htd1YIK2dZv+0zypa5HF6qn3+248PewmdbsM/B/5ciJvo7Fs186KR35adInVHMEM UyVp1DEkMHOQUqEm1UbckYX3vQ+nQ5dLmmvEVjFVJ1Vvh4P08BW2knDfNEa+vMGMryymyu Kvvn5ky0uB/R9MwhmFdCT1F440NKGyNTmapuWRwJEsjcFsPu167bKDN4IPxXQHL2sgwzEj /3I7/FmEYzDyFPlo07mswnzyHR677O9O/OWYR7vf962QU7V0q8EVRSntABgZ1w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1647357610; a=rsa-sha256; cv=none; b=xn8/B6c4ynYPn+U2I1infPNoDz7NVDdV01AukwQxBkKI9Ndy2F6+tDNmJKMynF5e8ZX3SE Ek/98VqqeXAZvCnYUfGxe+7/knMtqeAgS47eW4ESzESXNTKvQKxrR0Ehx5cSL69rs28FgU kHexY6mie9RteIlKOfCGfjXJrvyJOCUGqbgli3q1jfU71BI+8F08qVCSAPdvPJtDniBMZ3 O/VyY0j72/ugmbxoPRzsJXGQBJwbbYwcJ2wzb3ZlH/sarPslq537pT+VoD988ebL/iqVhE se4skTpp2lPoWptWmdxYFFRswFo7LhYL3rFpSywWQancNh2aQWd8+T4Nr4UL8Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=eb9784f245b32c5bd86693beb0b45c319671fe45 commit eb9784f245b32c5bd86693beb0b45c319671fe45 Author: Kristof Provost AuthorDate: 2022-03-08 11:22:50 +0000 Commit: Kristof Provost 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;