diff options
author | Luis R. Rodriguez <lrodriguez@atheros.com> | 2009-08-03 15:24:55 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-08-04 16:44:33 -0400 |
commit | 2f69ffacb303bba274b126eabd3a3ed011b2d35d (patch) | |
tree | 8f8c209ebe490dff895ecc887ba99fe1516efa12 | |
parent | 95fafca26dc317b7ea0667c57576b0b5389f5bef (diff) |
ath9k: remove dangling error check on keycache reset on hw init
The keycache reset will not fail as right above we ensure
to set the sc->keymax to be <= ah->caps.keycache_size. Just remove
this dangling check.
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/ath/ath9k/main.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c index a5475b7a59de..7f412dd9b9fb 100644 --- a/drivers/net/wireless/ath/ath9k/main.c +++ b/drivers/net/wireless/ath/ath9k/main.c | |||
@@ -1363,9 +1363,6 @@ static int ath_init_softc(u16 devid, struct ath_softc *sc) | |||
1363 | for (i = 0; i < sc->keymax; i++) | 1363 | for (i = 0; i < sc->keymax; i++) |
1364 | ath9k_hw_keyreset(ah, (u16) i); | 1364 | ath9k_hw_keyreset(ah, (u16) i); |
1365 | 1365 | ||
1366 | if (r) | ||
1367 | goto bad; | ||
1368 | |||
1369 | /* default to MONITOR mode */ | 1366 | /* default to MONITOR mode */ |
1370 | sc->sc_ah->opmode = NL80211_IFTYPE_MONITOR; | 1367 | sc->sc_ah->opmode = NL80211_IFTYPE_MONITOR; |
1371 | 1368 | ||