The branch main has been updated by imp:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=9af048a0b154685b280f21f948f693dc2971c860

commit 9af048a0b154685b280f21f948f693dc2971c860
Author:     Warner Losh <i...@freebsd.org>
AuthorDate: 2022-04-04 23:57:49 +0000
Commit:     Warner Losh <i...@freebsd.org>
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;

Reply via email to