From nobody Sun Jul 24 11:01:52 2022 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 4LrKxY6bD5z4XX57; Sun, 24 Jul 2022 11:01:53 +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 4LrKxY0GmMz3b46; Sun, 24 Jul 2022 11:01:53 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658660513; 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=vuKFBfJAeBUylY14+oRzsNSqsGZRkQCinBhKrs/d0vI=; b=HfEyO+6CUew2beAQ8gpge9pdPq+amPHoPTNHLeSD06xIIVLExpqwpbZZv+7nR5EveT/nX/ BPTABYu92Xb8Ri/OfVHE6Ez3L5R9nzbi8PGk9lAsqpysJMALIsFYXnJSyECQWv/SrkP6LX YpbPXjgNmnKHdu1b62fIMK0uVT6sUbhYzhI1fMRwmerhwLQUhzyb0Rwg0hUPyaorPGQTTq AzixLxYxNfYkzKuJ/Nl9Ps4ed+xsZ35FUi2354VekpbPFZgw79tVx8rZSaRviq2oNxR+kE moLT8SmOEQaDVtK4ROZnQYs3c7eXeNb1ioX01VXkbvfoQwEuPttVYP3XtlsjVg== 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 4LrKxX60jqzGJ4; Sun, 24 Jul 2022 11:01:52 +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 26OB1qal040872; Sun, 24 Jul 2022 11:01:52 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26OB1qCj040871; Sun, 24 Jul 2022 11:01:52 GMT (envelope-from git) Date: Sun, 24 Jul 2022 11:01:52 GMT Message-Id: <202207241101.26OB1qCj040871@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: 6cc991e810f3 - stable/13 - Fix unused variable warning in if_lagg.c 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: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 6cc991e810f3bc97446051af1242e49c336f3fb2 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658660513; 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=vuKFBfJAeBUylY14+oRzsNSqsGZRkQCinBhKrs/d0vI=; b=n7JQBaCSsO07Cx3MRVnL2YEDrT6ckN+qD2uQuVRTDaM2MFQkv7YtsCR+1WSA/C2eMsKUf0 gfk7Hll1WLFzSu0lQQCDb7i+TTNcCBF+meAwQ6UhU8dSfi7SC46AbbEqQOc/7d8sJnfLwp j99FZROtvJMo7uyIWXZik1Gfh8yv02LqoA4KHmB9sL9slG9Gn2zbLlhwkAO0PLgrXY8vFn cEpFFIiB3khDrvPcI1oidQQt6cd5FcbVlaHapGt1QEE120tI6l8gUwzmEo1UJzTFD4aLbI hMkNVnK0apwuj1xEYGkTH2xW3xXo3jFesoaifTN5Atz4Qfs9OIfHi1zobvoiFA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658660513; a=rsa-sha256; cv=none; b=bMfaV/wDBgTJMLsOHoezcHCUnvGbE4Y4AxJDoyth3/rMwYCA/z/H/6QbqGKuVnrHEg7z2N fQxLi3ErG386ghO3OfB7RHM65NZ57DQdwGF1t/gRXS6oFyLWQqUjpLHT2+J8DDTo1Pb1pN WSju0aCTJTVEEsd0hFGtR4hoAGnvT6hrqj7sTOhE+s1Xa0yrzgaqaMUwfwiZ/6G1kTvz6a azxCLhHuoPmGLE0Zg4L0qPwmjr8qlCkc+0RMmbx84zwHzB+ca2T1jTKLM2iuyj3Dn892Rq cbYF50vRG+a1oRHL34KCGNbaExugq9jiI/KiAVb7X1pqTgMbd6kUT4kkmhkngw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=6cc991e810f3bc97446051af1242e49c336f3fb2 commit 6cc991e810f3bc97446051af1242e49c336f3fb2 Author: Dimitry Andric AuthorDate: 2022-07-21 18:51:23 +0000 Commit: Dimitry Andric CommitDate: 2022-07-24 11:00:09 +0000 Fix unused variable warning in if_lagg.c With clang 15, the following -Werror warning is produced: sys/net/if_lagg.c:2413:6: error: variable 'active_ports' set but not used [-Werror,-Wunused-but-set-variable] int active_ports = 0; ^ The 'active_ports' variable appears to have been a debugging aid that has never been used for anything (ref https://reviews.freebsd.org/D549), so remove it. MFC after: 3 days (cherry picked from commit fa267a329ffa3d0e02c3c3a52dd5df5231d92cba) --- sys/net/if_lagg.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/sys/net/if_lagg.c b/sys/net/if_lagg.c index 55aae2795644..eeae7273ad2a 100644 --- a/sys/net/if_lagg.c +++ b/sys/net/if_lagg.c @@ -2337,7 +2337,6 @@ lagg_rr_input(struct lagg_softc *sc, struct lagg_port *lp, struct mbuf *m) static int lagg_bcast_start(struct lagg_softc *sc, struct mbuf *m) { - int active_ports = 0; int errors = 0; int ret; struct lagg_port *lp, *last = NULL; @@ -2348,8 +2347,6 @@ lagg_bcast_start(struct lagg_softc *sc, struct mbuf *m) if (!LAGG_PORTACTIVE(lp)) continue; - active_ports++; - if (last != NULL) { m0 = m_copym(m, 0, M_COPYALL, M_NOWAIT); if (m0 == NULL) {