Skip to contentSkip to conversation

ath9k: remove self-assignment in ath9k_eeprom_request

PATCH Dave Jones 1 participant 1 message Sep 17, 2013

Subsystems (3)
lore
Share & tools
lore

Dave Jones

author
#0 lore raw

Assigning a variable to itself is pointless, moreso when it's overwritten immediately.

Introduced in ab5c4f71d8c7add173a2d32e5beefdaaf1b7cbbc
("ath9k: allow to load EEPROM content via firmware API")

drivers/net/wireless/ath/ath9k/init.c +1 -1
index 9a1f349..0cb3f2d 100644
@@ -572,7 +572,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 */