diff options
author | andreast <andreast@FreeBSD.org> | 2011-01-06 20:19:01 +0000 |
---|---|---|
committer | andreast <andreast@FreeBSD.org> | 2011-01-06 20:19:01 +0000 |
commit | b3910b1de1b8d471bd61ec5de83e1a07d03ea512 (patch) | |
tree | 6e3101400b08e8d0ca8ab1ddae979bdefce18c28 /sys/powerpc/cpufreq | |
parent | 406dbc36d263fb5aa578c85efc239621e4d0bad9 (diff) | |
download | FreeBSD-src-b3910b1de1b8d471bd61ec5de83e1a07d03ea512.zip FreeBSD-src-b3910b1de1b8d471bd61ec5de83e1a07d03ea512.tar.gz |
Remove unused variables. Spotted by a cppcheck
(devel/cppcheck, http://sourceforge.net/projects/cppcheck) run.
Approved by: nwhitehorn (mentor)
Diffstat (limited to 'sys/powerpc/cpufreq')
-rw-r--r-- | sys/powerpc/cpufreq/dfs.c | 2 | ||||
-rw-r--r-- | sys/powerpc/cpufreq/pcr.c | 2 |
2 files changed, 0 insertions, 4 deletions
diff --git a/sys/powerpc/cpufreq/dfs.c b/sys/powerpc/cpufreq/dfs.c index 2eb61cb..fce9fc3 100644 --- a/sys/powerpc/cpufreq/dfs.c +++ b/sys/powerpc/cpufreq/dfs.c @@ -165,12 +165,10 @@ dfs_settings(device_t dev, struct cf_setting *sets, int *count) static int dfs_set(device_t dev, const struct cf_setting *set) { - struct dfs_softc *sc; register_t hid1; if (set == NULL) return (EINVAL); - sc = device_get_softc(dev); hid1 = mfspr(SPR_HID1); hid1 &= ~(HID1_DFS2 | HID1_DFS4); diff --git a/sys/powerpc/cpufreq/pcr.c b/sys/powerpc/cpufreq/pcr.c index fc17592..ff4d20d 100644 --- a/sys/powerpc/cpufreq/pcr.c +++ b/sys/powerpc/cpufreq/pcr.c @@ -305,12 +305,10 @@ pcr_set(device_t dev, const struct cf_setting *set) static int pcr_get(device_t dev, struct cf_setting *set) { - struct pcr_softc *sc; uint64_t psr; if (set == NULL) return (EINVAL); - sc = device_get_softc(dev); memset(set, CPUFREQ_VAL_UNKNOWN, sizeof(*set)); |