summaryrefslogtreecommitdiff
path: root/device-functions.c
diff options
context:
space:
mode:
authorMichael J. Chudobiak <mjc@avtechpulse.com>2012-08-23 15:03:02 -0400
committerMichael J. Chudobiak <mjc@avtechpulse.com>2012-08-23 15:03:02 -0400
commit3764cf19983e58a471ac0359509ca81b60526ce3 (patch)
treed2305490d4d1ce646c92a7104245376ff02ed2d4 /device-functions.c
parent8ca8f7fbf06ac9ce5f2817e31d6bae330f243aa1 (diff)
cppcheck style fixes
Diffstat (limited to 'device-functions.c')
-rw-r--r--device-functions.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/device-functions.c b/device-functions.c
index 1ad00ba..5f3ebc4 100644
--- a/device-functions.c
+++ b/device-functions.c
@@ -26,15 +26,13 @@ int Set_frequency(int check_possible_only,int word_override,int range_override,i
// all this does right now is check the frequency range,
// and store the set value.
- int check_valid;
-
/* abandon if high channel selected by user but not enabled by firmware */
if (channel && !globals.Flash.ChanKey_frequency) {
return InvalidChannel;
}
if (!check_possible_only) {
- int i;
+ int i, check_valid;
for (i=0; i<max_channels; ++i) {
TestState[i]=globals.ChannelState[i];
}