From nobody Fri Dec 10 12:02:45 2021 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 AB90C18C9600; Fri, 10 Dec 2021 12:02:45 +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 4J9V0531Q4z3mNW; Fri, 10 Dec 2021 12:02:45 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 476D419D6F; Fri, 10 Dec 2021 12:02:45 +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 1BAC2jx3028858; Fri, 10 Dec 2021 12:02:45 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BAC2jAu028857; Fri, 10 Dec 2021 12:02:45 GMT (envelope-from git) Date: Fri, 10 Dec 2021 12:02:45 GMT Message-Id: <202112101202.1BAC2jAu028857@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mateusz Guzik Subject: git: 8f3562e2ca82 - main - bfe: plug a set-but-not-unused var 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: mjg X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8f3562e2ca82c6d70a7ab026c34c3012bfa6dc84 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639137765; 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=KS80/DjtLeyWZKwg3tzsIOZwVl0XQyxsheZ+NqRo5zc=; b=lg4MBRbCxf0guy+f5UPTSYG7WevwA3of5hJXJ3CfBzeXxuD2eyk6AcQKyphhPC7erw9gaq U+c6HsJgeGsFsPF7bTTql0CpVQaIuMMmIQhyg/i7141Y3lIqO3hkGzd/Wybrdeydfd9lcS K9rjpipjNyPJb9qB698NvrXJ6P/mQ1LtuSF8qPZKNpLWKZmY8AohV6rBFQ1wlSEua/RgOt ufTyvA2YDt/YNVBGi4Uh8mGI9yZjftxcazcXT5f/gdVBH+j6Q42BBM3UkY2Rp9CGLr1GF6 o5wK5SxS/5G+ieYZL8lI3RysBuCr+oFTDkXA/VAl71yArVxcQbeeDlgdiwFHfw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639137765; a=rsa-sha256; cv=none; b=pgLSUFgHRLf3cVUhyYlE5lusau0EeowreCcwu/ox1WOkTD1rayCV8JOPYFXz3NFb4Ry4Ok k/E249HkHgu684Xi87R+k242uLm3EI+LIHgQZQ6GRvZxYLBziEEEmY6/Bs/YyPhHPpWYm+ OWyXcnejXezl+mm6le7Mzq+WUQ9Hu1ZcjB/K8FxSrkNyuVYtkLg2gHXsTp0e3FSHvywH8x bSt/Go6stvIlbhqRrb6zRf5/xROVnc+OnakiNEnEGsR8EGObaku0LfSveaH1+t1pdw11vx kCkq71BnA4sTXlLuUzOyusXsxdQCuisfnY+1NyygjsVxAYvt7pww3PnNvEZkcA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=8f3562e2ca82c6d70a7ab026c34c3012bfa6dc84 commit 8f3562e2ca82c6d70a7ab026c34c3012bfa6dc84 Author: Mateusz Guzik AuthorDate: 2021-12-10 12:02:05 +0000 Commit: Mateusz Guzik CommitDate: 2021-12-10 12:02:05 +0000 bfe: plug a set-but-not-unused var Sponsored by: Rubicon Communications, LLC ("Netgate") --- sys/dev/bfe/if_bfe.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/dev/bfe/if_bfe.c b/sys/dev/bfe/if_bfe.c index a6b79b353e30..4d3cb164c115 100644 --- a/sys/dev/bfe/if_bfe.c +++ b/sys/dev/bfe/if_bfe.c @@ -652,7 +652,10 @@ bfe_miibus_statchg(device_t dev) { struct bfe_softc *sc; struct mii_data *mii; - u_int32_t val, flow; + u_int32_t val; +#ifdef notyet + u_int32_t flow; +#endif sc = device_get_softc(dev); mii = device_get_softc(sc->bfe_miibus); @@ -675,7 +678,6 @@ bfe_miibus_statchg(device_t dev) val &= ~BFE_TX_DUPLEX; if ((IFM_OPTIONS(mii->mii_media_active) & IFM_FDX) != 0) { val |= BFE_TX_DUPLEX; - flow = 0; #ifdef notyet flow = CSR_READ_4(sc, BFE_RXCONF); flow &= ~BFE_RXCONF_FLOW;