git: 1fa3912aa201 - stable/13 - cpufreq: dt: Plug set but not used variable
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 16 May 2022 13:21:31 UTC
The branch stable/13 has been updated by manu:
URL: https://cgit.FreeBSD.org/src/commit/?id=1fa3912aa201959ef55d8751dbaea614bb7f6454
commit 1fa3912aa201959ef55d8751dbaea614bb7f6454
Author: Emmanuel Vadot <manu@FreeBSD.org>
AuthorDate: 2022-02-21 10:04:09 +0000
Commit: Emmanuel Vadot <manu@FreeBSD.org>
CommitDate: 2022-05-16 13:15:45 +0000
cpufreq: dt: Plug set but not used variable
Sponsored by: Beckhoff Automation GmbH & Co. KG
(cherry picked from commit eb80ba8d543f59231ff2161da4b42ee2703dbc7f)
---
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 4ab021a97d31..9d7e90057de8 100644
--- a/sys/dev/cpufreq/cpufreq_dt.c
+++ b/sys/dev/cpufreq/cpufreq_dt.c
@@ -123,9 +123,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;