summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ath/ath9k/init.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2016-04-10 14:25:31 +0300
committerKalle Valo <kvalo@qca.qualcomm.com>2016-04-19 18:10:47 +0300
commit47f58b1ebe3739dad1ddeb5cd1f1e718648b4d24 (patch)
tree04142dbdd3ffd7021f85ea9798bcdea56c14164f /drivers/net/wireless/ath/ath9k/init.c
parent71f5137bf010c6faffab50c0ec15374c59c4a411 (diff)
downloadlinux-47f58b1ebe3739dad1ddeb5cd1f1e718648b4d24.tar.xz
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>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/init.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/init.c b/drivers/net/wireless/ath/ath9k/init.c
index 77ace8d72d54..fb702c48a233 100644
--- a/drivers/net/wireless/ath/ath9k/init.c
+++ b/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)
{
struct ath9k_eeprom_ctx ec;
- struct ath_hw *ah = ah = sc->sc_ah;
+ struct ath_hw *ah = sc->sc_ah;
int err;
/* try to load the EEPROM content asynchronously */