Date: Tue, 12 Apr 2022 21:59:17 GMT From: John Baldwin <jhb@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 6d0f9c91cbea - main - powerpc cpufreq: Remove unused variables. Message-ID: <202204122159.23CLxHsq035326@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=6d0f9c91cbeab52e5632d1b7d0a87ceef617b616 commit 6d0f9c91cbeab52e5632d1b7d0a87ceef617b616 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-04-12 21:58:58 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-04-12 21:58:58 +0000 powerpc cpufreq: Remove unused variables. --- sys/powerpc/cpufreq/pmcr.c | 4 ---- sys/powerpc/cpufreq/pmufreq.c | 2 -- 2 files changed, 6 deletions(-) diff --git a/sys/powerpc/cpufreq/pmcr.c b/sys/powerpc/cpufreq/pmcr.c index 1bc6ba09b01f..9989dcc1506e 100644 --- a/sys/powerpc/cpufreq/pmcr.c +++ b/sys/powerpc/cpufreq/pmcr.c @@ -158,10 +158,8 @@ pmcr_attach(device_t dev) static int pmcr_settings(device_t dev, struct cf_setting *sets, int *count) { - struct pmcr_softc *sc; int i; - sc = device_get_softc(dev); if (sets == NULL || count == NULL) return (EINVAL); if (*count < npstates) @@ -205,13 +203,11 @@ pmcr_set(device_t dev, const struct cf_setting *set) static int pmcr_get(device_t dev, struct cf_setting *set) { - struct pmcr_softc *sc; register_t pmcr; int i, pstate; if (set == NULL) return (EINVAL); - sc = device_get_softc(dev); memset(set, CPUFREQ_VAL_UNKNOWN, sizeof(*set)); diff --git a/sys/powerpc/cpufreq/pmufreq.c b/sys/powerpc/cpufreq/pmufreq.c index 8dae34c38fff..3c3d2ed3e811 100644 --- a/sys/powerpc/cpufreq/pmufreq.c +++ b/sys/powerpc/cpufreq/pmufreq.c @@ -107,14 +107,12 @@ pmufreq_identify(driver_t *driver, device_t parent) static int pmufreq_probe(device_t dev) { - struct pmufreq_softc *sc; phandle_t node; uint32_t min_freq; if (resource_disabled("pmufreq", 0)) return (ENXIO); - sc = device_get_softc(dev); node = ofw_bus_get_node(device_get_parent(dev)); /* * A scalable MPC7455 has min-clock-frequency/max-clock-frequency as OFW
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202204122159.23CLxHsq035326>