rtlwifi: rtl8192de: Fix initialization of place in _rtl92c_phy_get_rightchnlplace()
[linux-2.6-microblaze.git] / drivers / net / wireless / realtek / rtlwifi / rtl8192de / phy.c
index 8ae69d9..9b83c71 100644 (file)
@@ -896,7 +896,7 @@ static void _rtl92d_ccxpower_index_check(struct ieee80211_hw *hw,
 
 static u8 _rtl92c_phy_get_rightchnlplace(u8 chnl)
 {
-       u8 place;
+       u8 place = chnl;
 
        if (chnl > 14) {
                for (place = 14; place < sizeof(channel5g); place++) {
@@ -1363,7 +1363,7 @@ static void _rtl92d_phy_switch_rf_setting(struct ieee80211_hw *hw, u8 channel)
 
 u8 rtl92d_get_rightchnlplace_for_iqk(u8 chnl)
 {
-       u8 place = chnl;
+       u8 place;
 
        if (chnl > 14) {
                for (place = 14; place < sizeof(channel_all); place++) {