summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Guthrie <colin@mageia.org>2012-04-22 16:06:44 +0000
committerColin Guthrie <colin@mageia.org>2012-04-22 16:06:44 +0000
commitcd2602c58d73822e51e18b1955607204e16c70a7 (patch)
treeed1418fbc99efed42edb7aa48ed944684b7b9f4f
parent2487c865234ee1629e149c60753cca65cb5949a2 (diff)
downloadcpufreq-cd2602c58d73822e51e18b1955607204e16c70a7.tar
cpufreq-cd2602c58d73822e51e18b1955607204e16c70a7.tar.gz
cpufreq-cd2602c58d73822e51e18b1955607204e16c70a7.tar.bz2
cpufreq-cd2602c58d73822e51e18b1955607204e16c70a7.tar.xz
cpufreq-cd2602c58d73822e51e18b1955607204e16c70a7.zip
Remove unneeded RETVAL
-rw-r--r--cpufreq4
1 files changed, 0 insertions, 4 deletions
diff --git a/cpufreq b/cpufreq
index ab595a3..a017877 100644
--- a/cpufreq
+++ b/cpufreq
@@ -1,12 +1,8 @@
#!/bin/bash
-RETVAL=0
-
test -f /etc/sysconfig/cpufreq && . /etc/sysconfig/cpufreq
for cpu in /sys/devices/system/cpu/* ; do
[ "x$GOVERNOR" != "x" ] && [ -f $cpu/cpufreq/scaling_governor ] && echo $GOVERNOR > $cpu/cpufreq/scaling_governor
[ "x$MAX_FREQ" != "x" ] && [ -f $cpu/cpufreq/scaling_max_freq ] && echo $MAX_FREQ > $cpu/cpufreq/scaling_max_freq
[ "x$MIN_FREQ" != "x" ] && [ -f $cpu/cpufreq/scaling_min_freq ] && echo $MIN_FREQ > $cpu/cpufreq/scaling_min_freq
done
-
-exit $RETVAL