From nobody Wed Nov 24 16:28:43 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 6D1AF189BF6C; Wed, 24 Nov 2021 16:28:44 +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 4HzmfN0Jmmz3wMg; Wed, 24 Nov 2021 16:28:44 +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 D8048522C; Wed, 24 Nov 2021 16:28:43 +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 1AOGShVA020010; Wed, 24 Nov 2021 16:28:43 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1AOGShfV020009; Wed, 24 Nov 2021 16:28:43 GMT (envelope-from git) Date: Wed, 24 Nov 2021 16:28:43 GMT Message-Id: <202111241628.1AOGShfV020009@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: e052f7269108 - main - alc: plug a set-but-not-unused var in alc_init_locked 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: e052f72691088229c34e8f908593319c413b2a10 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1637771324; 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=fF/jRZZ0bFmlh2Y1jjLJQaI7EmEgHlYmJJZy1RrcwfU=; b=DO2S2B5+buVY3xC+rJplezaVDejLRbenV4Nc7xxvBRGeRLYzheMXRi/LUO609zsedO9gU7 6atUXeGgItJ5rqD71W2TnfN0QArvWC0gsrJZbvdGwZDeo33FY8EN/b3Ke+Rc8+VLuyXdqx mHJfRi30jCkuIH9YDRL37zGJxFb9cdVQrAaNkRAOCsajmGSnvVjJaMgE0JC82QFeX9XJlQ AlXMoxS/aU5kIJxgNZc790wfhUMYsOOUTHETsAaUhuC4ddUO8TvrSbN6lGJrE5AnSoNjbE NJSZhvafxu1MnPe1mY4TleiNORgVmmUgVliQLzXSurmSOWY2zSE+LvVDQ00cSA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1637771324; a=rsa-sha256; cv=none; b=CmmzIrlf8GdjtTES+P8J8a/fWTxvbawP5wALFHAGjxTQ762aeMwMvJDV/JhzEiSEv73cjD 7gMJbEAisSoYmxH3NpAnNQoZ9JdLbeF2sB+ZGZ0xoT+TGLFf0vBwG5BEAqdTcYnNsCBEhN cXFO+HEvJSL1hnJ9HXUK4SKbRCefvYtIDLbcOHrfz2MX6ze2aQmc/HwNcO4JVLTZHQS9PX ZbSBWHIAVqQBXQbFf587jLesB1tPKwp3QVHaoIx+cQoxZywX5eodgtfn+1L7VVaHZFIUKo X5Ge3vQ+wdRaFFMsNOdK6SIC0nBAqt60c1CPHAfzqGU4ARY4Zl9UpOt01RfL3g== 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=e052f72691088229c34e8f908593319c413b2a10 commit e052f72691088229c34e8f908593319c413b2a10 Author: Mateusz Guzik AuthorDate: 2021-11-24 16:26:57 +0000 Commit: Mateusz Guzik CommitDate: 2021-11-24 16:26:57 +0000 alc: plug a set-but-not-unused var in alc_init_locked Sponsored by: Rubicon Communications, LLC ("Netgate") --- sys/dev/alc/if_alc.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sys/dev/alc/if_alc.c b/sys/dev/alc/if_alc.c index eb906d60bcbe..bedbd20c1f04 100644 --- a/sys/dev/alc/if_alc.c +++ b/sys/dev/alc/if_alc.c @@ -3932,7 +3932,6 @@ static void alc_init_locked(struct alc_softc *sc) { struct ifnet *ifp; - struct mii_data *mii; uint8_t eaddr[ETHER_ADDR_LEN]; bus_addr_t paddr; uint32_t reg, rxf_hi, rxf_lo; @@ -3940,7 +3939,6 @@ alc_init_locked(struct alc_softc *sc) ALC_LOCK_ASSERT(sc); ifp = sc->alc_ifp; - mii = device_get_softc(sc->alc_miibus); if ((ifp->if_drv_flags & IFF_DRV_RUNNING) != 0) return;