diff options
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/rc.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/rc.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/net/wireless/ath/ath9k/rc.c b/drivers/net/wireless/ath/ath9k/rc.c index 714558d1ba78..faa752b95d5a 100644 --- a/drivers/net/wireless/ath/ath9k/rc.c +++ b/drivers/net/wireless/ath/ath9k/rc.c | |||
@@ -1452,17 +1452,7 @@ static void ath_rate_free(void *priv) | |||
1452 | 1452 | ||
1453 | static void *ath_rate_alloc_sta(void *priv, struct ieee80211_sta *sta, gfp_t gfp) | 1453 | static void *ath_rate_alloc_sta(void *priv, struct ieee80211_sta *sta, gfp_t gfp) |
1454 | { | 1454 | { |
1455 | struct ath_softc *sc = priv; | 1455 | return kzalloc(sizeof(struct ath_rate_priv), gfp); |
1456 | struct ath_rate_priv *rate_priv; | ||
1457 | |||
1458 | rate_priv = kzalloc(sizeof(struct ath_rate_priv), gfp); | ||
1459 | if (!rate_priv) { | ||
1460 | ath_err(ath9k_hw_common(sc->sc_ah), | ||
1461 | "Unable to allocate private rc structure\n"); | ||
1462 | return NULL; | ||
1463 | } | ||
1464 | |||
1465 | return rate_priv; | ||
1466 | } | 1456 | } |
1467 | 1457 | ||
1468 | static void ath_rate_free_sta(void *priv, struct ieee80211_sta *sta, | 1458 | static void ath_rate_free_sta(void *priv, struct ieee80211_sta *sta, |