From nobody Tue Oct 25 16:57:40 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 4MxdR82C27z4gL3S; Tue, 25 Oct 2022 16:57:40 +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 4MxdR81dvdz4M9F; Tue, 25 Oct 2022 16:57:40 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1666717060; 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=zOzjD6m6+lo2PmrbCy51r32KcqDkllbgCV7Wfn6qwrk=; b=uq6X/gDynTraxJUOLUV+6pIPBiq3P5JTHlyKzgJAMnbZ92Et2TSZ8O1N4DujKsNel6v1tK LkmDGYY4s2FOeG9vaBwhlebHhoiaqIRS2OT3pg2PZgHSQ0AFZisl6xAPvNpi8q0yq+PXzO HwbfxEsUXfSJqap9Xwui+lJ+dlps/eU/3sjrGgL7rO9rH8DNB+086jsVJqyQblgw8W5vVU lwOgr0aEDMhORY1Y+/7QOlJ2YiF3rR9i1t9ozZ4Sdk4XV1Rbe3K3ri/zCxXYkEd3I1Oetw 0LCz2MXIkz3Jik4eWqYf0OWEIQh8/3zvghk3zhtV3eIuyhxtxszdTLtHKhRV/g== 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 4MxdR80hMXzlQ4; Tue, 25 Oct 2022 16:57:40 +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 29PGveYW064932; Tue, 25 Oct 2022 16:57:40 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 29PGvet5064931; Tue, 25 Oct 2022 16:57:40 GMT (envelope-from git) Date: Tue, 25 Oct 2022 16:57:40 GMT Message-Id: <202210251657.29PGvet5064931@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: b66e766d57a4 - main - genet: cnt here is write only and can be removed 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: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b66e766d57a4149ef40edbf00e5bbf9908c7c8d8 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1666717060; 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=zOzjD6m6+lo2PmrbCy51r32KcqDkllbgCV7Wfn6qwrk=; b=gMn6AH98p4jm0ooq48+0ktot6H/lvYUBItbeTKRDah4BncYk4uHXL6HDAZgKtg1O+gua2u SvZApnQuSL8JLJp0uX7z6uLumLMiGfFaTZjY3mjZxJDfT5bAzilAeDrqGGonoTgolVAcYc 7jOw9CbbETbeq9a1zRfo/hdhPC8BJVuZqfNjYSYDMywDKWs/a+C0kdAUik3SOT1cQB2XC4 ZVBZOsN5yexc3nYXRUCW7r/bFp35kq9TOqKEvPMzQw0LaA2hCttbYOQZLeVJaixiCQU3OY 1CpGX9eNcxJrehJahA76kocvopxtfCiDkP8tVvFOuu0jmjHiDHTo84ccLq3JUg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1666717060; a=rsa-sha256; cv=none; b=c7F4wg5GlpoE3O5v/gc9IkXpoWmuwCee2Yc7EWTQm268hN/7dwjv7YGZBUXGP2kEvmIcWQ CLJBs+ZZgD3CHO3TydAQPU5nvq4y4aiOoWNv7FHAcYJ+n/V58BbKfgydiKVVQW89IGN0dg X/fG9DrTIERlDtZE3kLdyKH4vO2gyZiZoQIjvRP/kXk6NjVeeG0b6BKc3+EdxlFWD7z+rM XRqpmt9b/AEtqnsF5GvIqzHKnpM1OOaIShlaMkrd47irlQ4AKGqVuL6K1TxMg42I3LcRa7 cg0gUkz2vcnCO48NMz9FGgqiZ4bGsO9/uCUskjdnx3eu2ems5ZCZH+Ujy4g0OQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=b66e766d57a4149ef40edbf00e5bbf9908c7c8d8 commit b66e766d57a4149ef40edbf00e5bbf9908c7c8d8 Author: Warner Losh AuthorDate: 2022-10-25 14:52:53 +0000 Commit: Warner Losh CommitDate: 2022-10-25 16:57:29 +0000 genet: cnt here is write only and can be removed Sponsored by: Netflix --- sys/arm64/broadcom/genet/if_genet.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/arm64/broadcom/genet/if_genet.c b/sys/arm64/broadcom/genet/if_genet.c index 327af8acbcdd..978106fdfad5 100644 --- a/sys/arm64/broadcom/genet/if_genet.c +++ b/sys/arm64/broadcom/genet/if_genet.c @@ -1012,7 +1012,7 @@ gen_start_locked(struct gen_softc *sc) { struct mbuf *m; if_t ifp; - int cnt, err; + int err; GEN_ASSERT_LOCKED(sc); @@ -1025,7 +1025,7 @@ gen_start_locked(struct gen_softc *sc) IFF_DRV_RUNNING) return; - for (cnt = 0; ; cnt++) { + while (true) { m = if_dequeue(ifp); if (m == NULL) break;