Browse Source

ath9k: remove duplicate assignment of variable ah

ah is written twice with the same value, remove one of the
redundant assignments to ah.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Colin Ian King 9 years ago
parent
commit
47f58b1ebe
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/net/wireless/ath/ath9k/init.c

+ 1 - 1
drivers/net/wireless/ath/ath9k/init.c

@@ -477,7 +477,7 @@ static void ath9k_eeprom_request_cb(const struct firmware *eeprom_blob,
 static int ath9k_eeprom_request(struct ath_softc *sc, const char *name)
 static int ath9k_eeprom_request(struct ath_softc *sc, const char *name)
 {
 {
 	struct ath9k_eeprom_ctx ec;
 	struct ath9k_eeprom_ctx ec;
-	struct ath_hw *ah = ah = sc->sc_ah;
+	struct ath_hw *ah = sc->sc_ah;
 	int err;
 	int err;
 
 
 	/* try to load the EEPROM content asynchronously */
 	/* try to load the EEPROM content asynchronously */