From nobody Tue Mar 08 13:02:15 2022 X-Original-To: dev-commits-src-main@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 0E8F219F6E22; Tue, 8 Mar 2022 13:02:16 +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 4KCb874flLz3n74; Tue, 8 Mar 2022 13:02:15 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646744535; 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=c7vIW2xG6NtvUJ75ZM4LIFuOQTWaV2g81EWlrm8+Miw=; b=rMPrDEBCCHtpiGt26UfY3RmDeVwL4fo8OEGrJust+HaJoC+FrtreDncx6Bc59axKGzsywe hipl55+f4GYonXdxeFtSgmQI+xqoCe+R+I3oi+xTnTICEZmSGdIsHQd2UP7qrv4Mud94w0 jATLeBBCbHz9NdoV/xbSswEaoil+3jP7CKjh1vBD09eBwJnaJbGtYWcm5RsLpxoKnNLlxp xPhnqSt2yJRR7gieHPxJa1UnNoSBwPwHCQ92NwKRtmSZhDRZNKao9tBEqRCbwLetkUziYY yPIU67k/4X4WBQa4+l4zlUsK1Ew56ccS5YaQaNQoaDEjr7Sk7m+lG+lD2cHzkQ== 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 557901CFA5; Tue, 8 Mar 2022 13:02:15 +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 228D2FZ2098826; Tue, 8 Mar 2022 13:02:15 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 228D2FWr098825; Tue, 8 Mar 2022 13:02:15 GMT (envelope-from git) Date: Tue, 8 Mar 2022 13:02:15 GMT Message-Id: <202203081302.228D2FWr098825@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kristof Provost Subject: git: c4e49c3a65df - main - pfctl: remove unused variable List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: c4e49c3a65df1e806399962e27eb47a0f611223d Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646744535; 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=c7vIW2xG6NtvUJ75ZM4LIFuOQTWaV2g81EWlrm8+Miw=; b=gL1TFIZghwjy3daqh6EuUfETrOkDgVjPx901wdb8+BEpDUXq73F46Ml7/e9P7WuYgYaU9d j5Rro17DbR1AkRHjZum0LqQ9NN5gxIp0cbeEVO4kxA3JiQIq14NpzkdYtPwJ5P26YeuJJu mbTWjbBsihSEUY5cTCStjE+cOk2tkThWrAlNSUVOO2SpRExH690jVwZOXLvOxcTDc0gWFS uRVSU9lJVo32728rxnvIgTtWTVzpwNnx4330iMWzszVNtwb7ghvY/9j05DC0ctkMtEa067 pQEMWao11rvGljRNgjZBDneho0oiFEQdZZcYbl/P5+w42DwVb6/DWSScjsMKmA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1646744535; a=rsa-sha256; cv=none; b=jphIbmF/p/uJVIzO+z3EnjnG12l/DIYm5GbOaPOomU87YAckvm6tJyZBVVQse/zD8YEyjM 4MGcGpTX3QRf6x+PPruepfBDCXU+gRcbn2trvdPzIIj6ecH2yH2dRFM1gRmIPHarpC+/Yo 239y1dAOpE2DWBm74PdaKXlE6uNgfkfz9PSE0oq9lrqNjTWfbGSey+tEOFokTo7d3HTZpo 4titKqDDf8dDhIlfyJC+wsjz/naZy3ZCeAdyFi2vqEtJFgjNQmmISQ5Q6cKsjQUucO4FBc r91hOlH+7foQrnzVlnV7DhgF0YvNLXT9O10V9L0UPhJRRbZkIfGzC1bL6ntJtg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=c4e49c3a65df1e806399962e27eb47a0f611223d commit c4e49c3a65df1e806399962e27eb47a0f611223d Author: Kristof Provost AuthorDate: 2022-03-08 11:22:50 +0000 Commit: Kristof Provost 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;