git: ddf236422d81 - stable/13 - bhnd_pwrctl_attach: eliminate write only bus variable
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 02 Oct 2022 04:29:20 UTC
The branch stable/13 has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=ddf236422d810fe2540e64335a3c4d9d25fe80c8 commit ddf236422d810fe2540e64335a3c4d9d25fe80c8 Author: Warner Losh <imp@FreeBSD.org> AuthorDate: 2022-07-08 17:53:29 +0000 Commit: Warner Losh <imp@FreeBSD.org> 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;