Remove local keywords and uninitialized variables

Remove keywords such as "let", "typeset", and "local" that
are defined in BASH. Also, clean up any unused variables in
the process.

Reviewed-by: Amit Kucheria <amit.kucheria@linaro.org>
Signed-off-by: Lisa Nguyen <lisa.nguyen@linaro.org>
diff --git a/cpufreq/cpufreq_06.sh b/cpufreq/cpufreq_06.sh
index 803b937..a6fbd15 100755
--- a/cpufreq/cpufreq_06.sh
+++ b/cpufreq/cpufreq_06.sh
@@ -31,8 +31,8 @@
 
 compute_freq_ratio() {
 
-    local cpu=$1
-    local freq=$2
+    cpu=$1
+    freq=$2
 
     set_frequency $cpu $freq
 
@@ -75,8 +75,8 @@
 
 check_freq_deviation() {
 
-    local cpu=$1
-    local freq=$2
+    cpu=$1
+    freq=$2
 
     check "deviation for frequency $(frequnit $freq)" __check_freq_deviation
 
@@ -84,7 +84,7 @@
 
 check_deviation() {
 
-    local cpu=$1
+    cpu=$1
 
     set_governor $cpu userspace