git: d513292e74a8 - main - [bhnd] remove unused sc variable
Michael Zhilin
mizhka at FreeBSD.org
Fri May 28 20:30:17 UTC 2021
The branch main has been updated by mizhka:
URL: https://cgit.FreeBSD.org/src/commit/?id=d513292e74a868cd73a145970344f4d8a6bb9286
commit d513292e74a868cd73a145970344f4d8a6bb9286
Author: Michael Zhilin <mizhka at FreeBSD.org>
AuthorDate: 2021-05-28 20:26:14 +0000
Commit: Michael Zhilin <mizhka at 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;
More information about the dev-commits-src-main
mailing list