Date: Tue, 5 Apr 2022 04:32:07 GMT From: Warner Losh <imp@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 9af048a0b154 - main - bhnd_pwrctl_attach: eliminate write only bus variable Message-ID: <202204050432.2354W7n1008580@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=9af048a0b154685b280f21f948f693dc2971c860 commit 9af048a0b154685b280f21f948f693dc2971c860 Author: Warner Losh <imp@FreeBSD.org> AuthorDate: 2022-04-04 23:57:49 +0000 Commit: Warner Losh <imp@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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202204050432.2354W7n1008580>