aboutsummaryrefslogtreecommitdiff
path: root/sys/powerpc/cpufreq/pcr.c
diff options
context:
space:
mode:
authorAndreas Tobler <andreast@FreeBSD.org>2011-01-06 20:19:01 +0000
committerAndreas Tobler <andreast@FreeBSD.org>2011-01-06 20:19:01 +0000
commit7dbe66c15786cb013b7f2275d90d5b48572501ad (patch)
tree6e3101400b08e8d0ca8ab1ddae979bdefce18c28 /sys/powerpc/cpufreq/pcr.c
parent574fe75809ddccaaa62c25ecc252f81675e7a319 (diff)
downloadsrc-7dbe66c15786cb013b7f2275d90d5b48572501ad.tar.gz
src-7dbe66c15786cb013b7f2275d90d5b48572501ad.zip
Remove unused variables. Spotted by a cppcheck
(devel/cppcheck, http://sourceforge.net/projects/cppcheck) run. Approved by: nwhitehorn (mentor)
Notes
Notes: svn path=/head/; revision=217065
Diffstat (limited to 'sys/powerpc/cpufreq/pcr.c')
-rw-r--r--sys/powerpc/cpufreq/pcr.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/powerpc/cpufreq/pcr.c b/sys/powerpc/cpufreq/pcr.c
index fc17592638fb..ff4d20d2e939 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));