The branch main has been updated by mizhka: URL: https://cgit.FreeBSD.org/src/commit/?id=d513292e74a868cd73a145970344f4d8a6bb9286
commit d513292e74a868cd73a145970344f4d8a6bb9286 Author: Michael Zhilin <miz...@freebsd.org> AuthorDate: 2021-05-28 20:26:14 +0000 Commit: Michael Zhilin <miz...@freebsd.org> CommitDate: 2021-05-28 20:26:14 +0000 [bhnd] remove unused sc variable Cosmetic patch to remove unused sc variable. Tested on mips32 Reviewed by: bz, imp, landonf Sponsored by: Postgres Professional Differential revision: https://reviews.freebsd.org/D18948 --- sys/dev/bhnd/bhnd.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/sys/dev/bhnd/bhnd.c b/sys/dev/bhnd/bhnd.c index 683fd662bcdc..1ec4cb1ce48d 100644 --- a/sys/dev/bhnd/bhnd.c +++ b/sys/dev/bhnd/bhnd.c @@ -634,14 +634,11 @@ bhnd_generic_request_clock(device_t dev, device_t child, bhnd_clock clock) int bhnd_generic_enable_clocks(device_t dev, device_t child, uint32_t clocks) { - struct bhnd_softc *sc; struct bhnd_core_clkctl *clkctl; uint32_t avail; uint32_t req; int error; - sc = device_get_softc(dev); - if (device_get_parent(child) != dev) return (EINVAL); @@ -650,8 +647,6 @@ bhnd_generic_enable_clocks(device_t dev, device_t child, uint32_t clocks) BHND_ASSERT_CLKCTL_AVAIL(clkctl); - sc = device_get_softc(dev); - avail = 0x0; req = 0x0; _______________________________________________ dev-commits-src-main@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/dev-commits-src-main To unsubscribe, send any mail to "dev-commits-src-main-unsubscr...@freebsd.org"