From nobody Tue Apr 05 04:32:07 2022 X-Original-To: dev-commits-src-main@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 B51751A8FEB0; Tue, 5 Apr 2022 04:32:08 +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 4KXZVb69fHz4fhV; Tue, 5 Apr 2022 04:32:07 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649133128; 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=wvWWL8xgyAxZc4N/bbaEFxJLVhVGd1NQpFARMNjqvus=; b=oIWp+DsOSxUTv8WiEfYyJI6Cqi9uWmZt4DPYoTKZUzDPM9hDghLETJ3/VBmSkxacherrP9 4ReBo9MYY5vsB/wbEPDFawCRUZfpKf18AE886cdMV/jtY7m8PE7jfxj/Ma1HApsydlEtwZ Dt1H/g54WP/PO6VteQ/WuFSg9Q13fTdis1A9SVU2Uoin+xWU6Dn8tOAnOc9v3MmACn1qKK osFl0uJkQrYTb16TEgT0eX1lfpHwyPgdEuhD0hQOksofoJvhpYswTun8lFx4biOkid1hCJ oJAlLuLsQiUdKpahzA2s1XiuWL6He9odHilY3YmWBHVVR0NL+5RCxQLJ7oN1xA== 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 55B411FAD9; Tue, 5 Apr 2022 04:32:07 +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 2354W7na008581; Tue, 5 Apr 2022 04:32:07 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2354W7n1008580; Tue, 5 Apr 2022 04:32:07 GMT (envelope-from git) Date: Tue, 5 Apr 2022 04:32:07 GMT Message-Id: <202204050432.2354W7n1008580@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: 9af048a0b154 - main - bhnd_pwrctl_attach: eliminate write only bus variable List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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: 9af048a0b154685b280f21f948f693dc2971c860 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649133128; 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=wvWWL8xgyAxZc4N/bbaEFxJLVhVGd1NQpFARMNjqvus=; b=ADMdjrvERurbK5DEUlZw5VXOr8OYMiqSRNVHNgFCiQgRkR4jRVGiTQvjCKHoKuqPWf1dda 4cgnPjYsIYfprccvoLEIlzDcpwQ/eaP7YVuhtHEw3+EVncWFNqWIgOvVrzcS9SFPbbX3Pe u2xcdvBwj7zX3uA0PTQ7HT2YkJMJlfTrye2LRXZzZlU65HSl7wjnlP/mz2owWv1ZIkAuoR DhD44yMtexa5vl7hupUHo9bo8LkL3LIH4oUrBC483Ix+8eh5mw/7qV9Y0BON2raMNrVe/8 mI9ZEdukZ1T1RCiXf63JhqnqX2b61yy0KvAyknx6Tc9mUBOLTVCgdXEFz09g1w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649133128; a=rsa-sha256; cv=none; b=RKwk79/Ytu5TdU2ej//UJj+zefGiN6HnefpXTEIs/GGp2cm8HSJdxAvv7wjpcuCLJrSFev Ne/jLkR/LgcyEz1T3xbhvKgrEVnK2ELaNxflZgowBEQYLfrLiAGLyPmQ9dUKv90Gl/ZMKy J0R5foM8H3lAlEq2L/FwnPV/095phTMGXMgIUgNN/clUBr1NFFz3Dd1ymiVH1nNjvWhx/c XPQD/xJxtFaLEC9ZeSkGOPHKoqKlNLJwkyFpAhfMbpEG9e4LHvXJr2ZgLAt64Y8u92BvVp y2sLGwKMaN8+jxE1oUFY1OEbiLLcVqUlFDSFa5lZ119tMJPfuaJ2k5nl1u3xow== 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=9af048a0b154685b280f21f948f693dc2971c860 commit 9af048a0b154685b280f21f948f693dc2971c860 Author: Warner Losh AuthorDate: 2022-04-04 23:57:49 +0000 Commit: Warner Losh CommitDate: 2022-04-05 04:29:18 +0000 bhnd_pwrctl_attach: eliminate write only bus variable Sponsored by: Netflix --- 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;