ath9k: Change return type for set_board_values()
authorSujith <Sujith.Manoharan@atheros.com>
Fri, 13 Mar 2009 03:26:05 +0000 (08:56 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Sat, 28 Mar 2009 00:12:50 +0000 (20:12 -0400)
We always return true, checking for 'false' return value
is bogus anyway, so fix this.

Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath9k/eeprom.c
drivers/net/wireless/ath9k/eeprom.h
drivers/net/wireless/ath9k/hw.c

index c3bb1968bb5ea55156a85b4eb07562ef942c074c..973b576c0ad8d0b7d10828f34bd4a71b71aed4dd 100644 (file)
@@ -1232,7 +1232,7 @@ static void ath9k_hw_4k_set_gain(struct ath_hw *ah,
                REG_WRITE(ah, AR9285_AN_TOP4, (AR9285_AN_TOP4_DEFAULT | 0x14));
 }
 
-static bool ath9k_hw_4k_set_board_values(struct ath_hw *ah,
+static void ath9k_hw_4k_set_board_values(struct ath_hw *ah,
                                         struct ath9k_channel *chan)
 {
        struct modal_eep_4k_header *pModal;
@@ -1378,8 +1378,6 @@ static bool ath9k_hw_4k_set_board_values(struct ath_hw *ah,
                                      AR_PHY_SETTLING_SWITCH,
                                      pModal->swSettleHt40);
        }
-
-       return true;
 }
 
 static u16 ath9k_hw_4k_get_eeprom_antenna_cfg(struct ath_hw *ah,
@@ -1718,7 +1716,7 @@ static void ath9k_hw_def_set_gain(struct ath_hw *ah,
        }
 }
 
-static bool ath9k_hw_def_set_board_values(struct ath_hw *ah,
+static void ath9k_hw_def_set_board_values(struct ath_hw *ah,
                                          struct ath9k_channel *chan)
 {
        struct modal_eep_header *pModal;
@@ -1884,8 +1882,6 @@ static bool ath9k_hw_def_set_board_values(struct ath_hw *ah,
                              AR_PHY_TX_DESIRED_SCALE_CCK,
                              eep->baseEepHeader.desiredScaleCCK);
        }
-
-       return true;
 }
 
 static void ath9k_hw_def_set_addac(struct ath_hw *ah,
index 0a4b22a554d2f2cb3ccf0cf62b29295df9c6ee15..8e5b880d445dfcb68b0fe46131c205cb4b6769d0 100644 (file)
@@ -490,7 +490,7 @@ struct eeprom_ops {
        u8 (*get_num_ant_config)(struct ath_hw *hw, enum ieee80211_band band);
        u16 (*get_eeprom_antenna_cfg)(struct ath_hw *hw,
                                      struct ath9k_channel *chan);
-       bool (*set_board_values)(struct ath_hw *hw, struct ath9k_channel *chan);
+       void (*set_board_values)(struct ath_hw *hw, struct ath9k_channel *chan);
        void (*set_addac)(struct ath_hw *hw, struct ath9k_channel *chan);
        int (*set_txpower)(struct ath_hw *hw, struct ath9k_channel *chan,
                           u16 cfgCtl, u8 twiceAntennaReduction,
index 3dd054b21f5a585f00104220ac1107553054b381..78e5763f7c1ae5f852be15fe71ad7f8bcd74d10c 100644 (file)
@@ -2277,11 +2277,7 @@ int ath9k_hw_reset(struct ath_hw *ah, struct ath9k_channel *chan,
        else
                ath9k_hw_spur_mitigate(ah, chan);
 
-       if (!ah->eep_ops->set_board_values(ah, chan)) {
-               DPRINTF(ah->ah_sc, ATH_DBG_EEPROM,
-                       "error setting board options\n");
-               return -EIO;
-       }
+       ah->eep_ops->set_board_values(ah, chan);
 
        ath9k_hw_decrease_chain_power(ah, chan);