diff --git a/sys/dev/bhnd/bhnd.c b/sys/dev/bhnd/bhnd.c --- a/sys/dev/bhnd/bhnd.c +++ b/sys/dev/bhnd/bhnd.c @@ -634,14 +634,11 @@ 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_ASSERT_CLKCTL_AVAIL(clkctl); - sc = device_get_softc(dev); - avail = 0x0; req = 0x0;