From nobody Sun Oct 02 04:29:20 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 4Mg9wJ2Qklz4dt39; Sun, 2 Oct 2022 04:29:20 +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 4Mg9wJ1ql9z43qK; Sun, 2 Oct 2022 04:29:20 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1664684960; 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=04HWeZqvKydJ6utIepc/ZYm0t1puXTYk4blgFkKzhyA=; b=ZVbJU1YA1hfAElGieJ2nD0kGbeHm0VlDh1qBF+U/Qj4o6sQVIrBMmj1gjc1cQMDKJ2CyLc bfn3EOFZFFNN4fGLvtT9dyqpIf2qTrmT63zrWbdiUs41BqYwNXX9c4WLwviKLmRk/K7UQK 8CTSs7lb4t3POjapNPDoZvAyKS1FUYi34ce2/4Pdyslq8hPr9/U9d2kJPfxJ6hqLaqGr/N fcV+5+HasOWOqQohhYjoqwz59JA9+v+OCJN79BYRDL2DIJTKa8ujXA0K8gI55JpF5+1/Oy fGV19RhP7lUzitscA7oM7kP/4tSnd2nsGyrRxLgnihS3ko00VYxHKShdcbtvXA== 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 4Mg9wJ0sSwzlbh; Sun, 2 Oct 2022 04:29:20 +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 2924TKRU058028; Sun, 2 Oct 2022 04:29:20 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2924TKBQ058027; Sun, 2 Oct 2022 04:29:20 GMT (envelope-from git) Date: Sun, 2 Oct 2022 04:29:20 GMT Message-Id: <202210020429.2924TKBQ058027@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Warner Losh Subject: git: ddf236422d81 - stable/13 - bhnd_pwrctl_attach: eliminate write only bus 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: imp X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: ddf236422d810fe2540e64335a3c4d9d25fe80c8 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1664684960; 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=04HWeZqvKydJ6utIepc/ZYm0t1puXTYk4blgFkKzhyA=; b=MnKaE/iimN3h1P7SFuTHUCcmc8khnv05R2c9Bd64aNIn/WXcGa3MTkpZ2sqUFhze4QTLbC ZtVIOPhqDTM/OjrUVAf9MVUgxBlC4MVD7HkVpoJqnvS+HhLO4sGmOl7DaCqRH0NtGpEMac 8PUVoiG/jcRay+rp2Dzlpm0kohPhgFlZvgNQstFId9JbOD/7eraCN7L4wWBbxgEea+gTNe p1cq5C+21r8T1LW6F3zyzCZw0uI97L6kK51oAuieIYnqaz8tpYZ2p/aJCpRCS/FCIU4QB4 3eciWZ1RkP/+p6Ud4lt2vs4H0fTE8MYYgdldXJcIvCuIqVxIHXAJyfzM37Vzvw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1664684960; a=rsa-sha256; cv=none; b=i1xRBhnn2qXQXscR+OivAkajXJ08UVyEfvqYwwDRx9LuxO+GgTABgw3eTbnLc7p+fm6kqq u97AY05D3A9XMXhnR8CUIe1KT99Y+GhJvtBVdFjCQM+4nxuw0DdNsJVKUucPvjqsPidfG4 DkaRQkqxjW+hqt97d1Hqhg+fdp8CmHj9Ub3wBmkLFulqun2pdx7OM6N2kmf7t2BZeiu362 RVmoLxRnGHQrvdJvvCArBcAaVpOcZFR+ZhbEz7gioAdJWkd455Z7gJhgUlLdtLlmf3yhUd ghw+AQDKWo7yvX+Yk17X5RUnqoitKnwEfUr3EFvs7/mHGCBYbim41xjwZgxVqw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=ddf236422d810fe2540e64335a3c4d9d25fe80c8 commit ddf236422d810fe2540e64335a3c4d9d25fe80c8 Author: Warner Losh AuthorDate: 2022-07-08 17:53:29 +0000 Commit: Warner Losh CommitDate: 2022-10-02 04:25:51 +0000 bhnd_pwrctl_attach: eliminate write only bus variable Sponsored by: Netflix (cherry picked from commit 9af048a0b154685b280f21f948f693dc2971c860) --- sys/dev/bhnd/cores/chipc/pwrctl/bhnd_pwrctl.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/sys/dev/bhnd/cores/chipc/pwrctl/bhnd_pwrctl.c b/sys/dev/bhnd/cores/chipc/pwrctl/bhnd_pwrctl.c index 586e8a667ff3..598f102fbe58 100644 --- a/sys/dev/bhnd/cores/chipc/pwrctl/bhnd_pwrctl.c +++ b/sys/dev/bhnd/cores/chipc/pwrctl/bhnd_pwrctl.c @@ -121,7 +121,6 @@ bhnd_pwrctl_attach(device_t dev) struct chipc_softc *chipc_sc; bhnd_devclass_t hostb_class; device_t hostb_dev; - device_t bus; int error; sc = device_get_softc(dev); @@ -131,8 +130,6 @@ bhnd_pwrctl_attach(device_t dev) sc->quirks = bhnd_device_quirks(sc->chipc_dev, pwrctl_devices, sizeof(pwrctl_devices[0])); - bus = device_get_parent(sc->chipc_dev); - /* On devices that lack a slow clock source, HT must always be * enabled. */ hostb_class = BHND_DEVCLASS_INVALID;