]> xenbits.xensource.com Git - people/royger/freebsd.git/commitdiff
cpufreq: dt: Plug set but not used variable
authorEmmanuel Vadot <manu@FreeBSD.org>
Mon, 21 Feb 2022 10:04:09 +0000 (11:04 +0100)
committerEmmanuel Vadot <manu@FreeBSD.org>
Mon, 21 Feb 2022 10:08:23 +0000 (11:08 +0100)
Sponsored by: Beckhoff Automation GmbH & Co. KG

sys/dev/cpufreq/cpufreq_dt.c

index 30d9d56e66af128d9ba0204a887a0420484cf0cf..ee5b15347fdc47629cc2e0843c598475bfe73825 100644 (file)
@@ -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;