Skip to content

Commit

Permalink
ath9k: remove dangling error check on keycache reset on hw init
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Luis R. Rodriguez authored and John W. Linville committed Aug 4, 2009
1 parent 95fafca commit 2f69ffa
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/net/wireless/ath/ath9k/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1363,9 +1363,6 @@ static int ath_init_softc(u16 devid, struct ath_softc *sc)
for (i = 0; i < sc->keymax; i++)
ath9k_hw_keyreset(ah, (u16) i);

if (r)
goto bad;

/* default to MONITOR mode */
sc->sc_ah->opmode = NL80211_IFTYPE_MONITOR;

Expand Down

0 comments on commit 2f69ffa

Please sign in to comment.