git: eb80ba8d543f - main - cpufreq: dt: Plug set but not used variable
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 21 Feb 2022 10:12:14 UTC
The branch main has been updated by manu:
URL: https://cgit.FreeBSD.org/src/commit/?id=eb80ba8d543f59231ff2161da4b42ee2703dbc7f
commit eb80ba8d543f59231ff2161da4b42ee2703dbc7f
Author: Emmanuel Vadot <manu@FreeBSD.org>
AuthorDate: 2022-02-21 10:04:09 +0000
Commit: Emmanuel Vadot <manu@FreeBSD.org>
CommitDate: 2022-02-21 10:08:23 +0000
cpufreq: dt: Plug set but not used variable
Sponsored by: Beckhoff Automation GmbH & Co. KG
---
sys/dev/cpufreq/cpufreq_dt.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/sys/dev/cpufreq/cpufreq_dt.c b/sys/dev/cpufreq/cpufreq_dt.c
index 30d9d56e66af..ee5b15347fdc 100644
--- a/sys/dev/cpufreq/cpufreq_dt.c
+++ b/sys/dev/cpufreq/cpufreq_dt.c
@@ -125,9 +125,6 @@ static void
cpufreq_dt_opp_to_setting(device_t dev, const struct cpufreq_dt_opp *opp,
struct cf_setting *set)
{
- struct cpufreq_dt_softc *sc;
-
- sc = device_get_softc(dev);
memset(set, 0, sizeof(*set));
set->freq = opp->freq / 1000000;