From nobody Tue Jun 20 16:29:37 2023 X-Original-To: dev-commits-src-all@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 4QlsXx4Lqlz4gJrq; Tue, 20 Jun 2023 16:29:37 +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 4QlsXx2XBjz4Lq0; Tue, 20 Jun 2023 16:29:37 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687278577; 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=YL7qBSNdYA24JE559kTstu+Sou9Y/mrqLze4D1tngi8=; b=Ec6EycWMaV8Isdt6tANpZdVvmHabRnSylFZ1tFtLL/F6RHRmaQa9h23t+SQub4OuKut7SE tZW8adZQiOxUIOG9VQvXETsoidD3NRaHdlRFEuS04vTjNf0a7EYvpuo461OCg78JhNGw2+ wWGzXB+p5p4/wcYS5IYefrSjjPnTOK9ZWwtKrGgCvsQIMN8XcNnFxPKRxPHjrcESIVY1yk Z1ooEseLMJMz5kR/JmBOPo0PZm5E0rLQtE6wDldKcq8BIeTovtCD8xQ2SMfkcKEs2BnjeR fcEecbHY+j+b6hN4B6vcALps/YQ3jqoqUkuUxIjw+qa5Ld+fCqsb99OTt9bBmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687278577; 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=YL7qBSNdYA24JE559kTstu+Sou9Y/mrqLze4D1tngi8=; b=ra6k8ntLMtmOfbsqnOlWltDbzy19+iSV+V57PhfZepaC433NhLRqteT+XnkXtBICKyU83n 6AB8tWrs0XFW23VKdl2a6SnW6cxs9NuhA9I6O6zH/bpk17Day6dEmAP4OlnN2I7/iPj9uN JdQ1/sYhggvUFs9YsKovUOjPRe1qcuSkfboUHmB37Y9KnJVsoohcB5iWQ50RWd8gY5U4LI Cl8gRQ3PUKO0iXM3Zfdgv/Z0CwflPyNZrrirJdcPwSFJHdbNFtAZ3fsi10xXvIpuAwH44W HLtsGIZYrTUXb5JLvZnFRlOXHK17gs5vRnbhKEkFh4GP645VoYzk+T3eq1VvKg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1687278577; a=rsa-sha256; cv=none; b=wI/p4yTXtOESUvY8ZZbSHP4KnP+/Ma+XP9eukc+SLv6NrnFLwx1YAWMX6vAABM59WqOg7t it+HfuQhxAUuwuV2apFqM1TMADReoo2eeRV1JD26YDOGhSSsVB4zJkFg7FEP1i/h+Z7yWx yEdpTr2uP9JgTcEUmubt8Ud365FlQd6PI1CDQNpV+J6xniWuOn7Ilg2ok1x00km+eeOyY/ EPx2ZD9xVuKWIqubPCvsK8p+NSv0wMfYWJ9D9U8jXSq4MLFvwDpxjvYgurme1KZsClmjXe P76iEgYDwyv1nf1FbhVsMvJ17SnNAXl8v3HZK35JlZSjL4VtzNbdZzqgh9udsw== 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 4QlsXx1G3Hz15j0; Tue, 20 Jun 2023 16:29:37 +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 35KGTbnO045445; Tue, 20 Jun 2023 16:29:37 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 35KGTb8d045444; Tue, 20 Jun 2023 16:29:37 GMT (envelope-from git) Date: Tue, 20 Jun 2023 16:29:37 GMT Message-Id: <202306201629.35KGTb8d045444@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: afb001df81b4 - main - bsnmpd snmp_bridge: Remove set but unused variable. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: afb001df81b4f69a739ee0cead50f71309f03ebb Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=afb001df81b4f69a739ee0cead50f71309f03ebb commit afb001df81b4f69a739ee0cead50f71309f03ebb Author: John Baldwin AuthorDate: 2023-06-20 16:29:00 +0000 Commit: John Baldwin CommitDate: 2023-06-20 16:29:00 +0000 bsnmpd snmp_bridge: Remove set but unused variable. --- usr.sbin/bsnmpd/modules/snmp_bridge/bridge_sys.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/usr.sbin/bsnmpd/modules/snmp_bridge/bridge_sys.c b/usr.sbin/bsnmpd/modules/snmp_bridge/bridge_sys.c index f3140097c5ac..57402e6a2847 100644 --- a/usr.sbin/bsnmpd/modules/snmp_bridge/bridge_sys.c +++ b/usr.sbin/bsnmpd/modules/snmp_bridge/bridge_sys.c @@ -1223,7 +1223,7 @@ bridge_getinfo_bif_ports(struct bridge_if *bif) int bridge_update_memif(struct bridge_if *bif) { - int added, updated; + int updated; uint32_t i; int32_t buf_len; struct ifbreq *b_req_buf, *b_req; @@ -1234,7 +1234,7 @@ bridge_update_memif(struct bridge_if *bif) if ((buf_len = bridge_port_get_iflist(bif, &b_req_buf)) < 0) return (-1); - added = updated = 0; + updated = 0; #define BP_FOUND 0x01 for (i = 0; i < buf_len / sizeof(struct ifbreq); i++) { @@ -1249,7 +1249,6 @@ bridge_update_memif(struct bridge_if *bif) if ((bp = bridge_port_find(m_if->index, bif)) == NULL && (bp = bridge_new_port(m_if, bif)) != NULL) { bp->status = RowStatus_active; - added++; } if (bp != NULL) {