aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruno Randolf <br1@einfach.org>2010-06-16 06:11:17 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-06-16 14:58:58 -0400
commit9e4e43f20f808babd1b4ecd65266748ed1673c1e (patch)
tree31a8bb79cabd4f084ebb68d3ba6b93d8ba2e507b
parent8d67a0310f7cba4796e5d5df99ed59408ac0b767 (diff)
ath5k: rename ath5k_txbuf_free() to ath5k_txbuf_free_skb()
Rename ath5k_txbuf_free() to ath5k_txbuf_free_skb() since this is what it does: it frees the skb and not the buf. Same for ath5k_rxbuf_free(). Signed-off-by: Bruno Randolf <br1@einfach.org> Acked-by: Bob Copeland <me@bobcopeland.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--drivers/net/wireless/ath/ath5k/base.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/drivers/net/wireless/ath/ath5k/base.c b/drivers/net/wireless/ath/ath5k/base.c
index 936afd7bae7e..8e6b54d07a4a 100644
--- a/drivers/net/wireless/ath/ath5k/base.c
+++ b/drivers/net/wireless/ath/ath5k/base.c
@@ -311,7 +311,8 @@ static int ath5k_rxbuf_setup(struct ath5k_softc *sc,
311static int ath5k_txbuf_setup(struct ath5k_softc *sc, 311static int ath5k_txbuf_setup(struct ath5k_softc *sc,
312 struct ath5k_buf *bf, 312 struct ath5k_buf *bf,
313 struct ath5k_txq *txq, int padsize); 313 struct ath5k_txq *txq, int padsize);
314static inline void ath5k_txbuf_free(struct ath5k_softc *sc, 314
315static inline void ath5k_txbuf_free_skb(struct ath5k_softc *sc,
315 struct ath5k_buf *bf) 316 struct ath5k_buf *bf)
316{ 317{
317 BUG_ON(!bf); 318 BUG_ON(!bf);
@@ -323,7 +324,7 @@ static inline void ath5k_txbuf_free(struct ath5k_softc *sc,
323 bf->skb = NULL; 324 bf->skb = NULL;
324} 325}
325 326
326static inline void ath5k_rxbuf_free(struct ath5k_softc *sc, 327static inline void ath5k_rxbuf_free_skb(struct ath5k_softc *sc,
327 struct ath5k_buf *bf) 328 struct ath5k_buf *bf)
328{ 329{
329 struct ath5k_hw *ah = sc->ah; 330 struct ath5k_hw *ah = sc->ah;
@@ -1444,11 +1445,11 @@ ath5k_desc_free(struct ath5k_softc *sc, struct pci_dev *pdev)
1444{ 1445{
1445 struct ath5k_buf *bf; 1446 struct ath5k_buf *bf;
1446 1447
1447 ath5k_txbuf_free(sc, sc->bbuf); 1448 ath5k_txbuf_free_skb(sc, sc->bbuf);
1448 list_for_each_entry(bf, &sc->txbuf, list) 1449 list_for_each_entry(bf, &sc->txbuf, list)
1449 ath5k_txbuf_free(sc, bf); 1450 ath5k_txbuf_free_skb(sc, bf);
1450 list_for_each_entry(bf, &sc->rxbuf, list) 1451 list_for_each_entry(bf, &sc->rxbuf, list)
1451 ath5k_rxbuf_free(sc, bf); 1452 ath5k_rxbuf_free_skb(sc, bf);
1452 1453
1453 /* Free memory associated with all descriptors */ 1454 /* Free memory associated with all descriptors */
1454 pci_free_consistent(pdev, sc->desc_len, sc->desc, sc->desc_daddr); 1455 pci_free_consistent(pdev, sc->desc_len, sc->desc, sc->desc_daddr);
@@ -1603,7 +1604,7 @@ ath5k_txq_drainq(struct ath5k_softc *sc, struct ath5k_txq *txq)
1603 list_for_each_entry_safe(bf, bf0, &txq->q, list) { 1604 list_for_each_entry_safe(bf, bf0, &txq->q, list) {
1604 ath5k_debug_printtxbuf(sc, bf); 1605 ath5k_debug_printtxbuf(sc, bf);
1605 1606
1606 ath5k_txbuf_free(sc, bf); 1607 ath5k_txbuf_free_skb(sc, bf);
1607 1608
1608 spin_lock_bh(&sc->txbuflock); 1609 spin_lock_bh(&sc->txbuflock);
1609 list_move_tail(&bf->list, &sc->txbuf); 1610 list_move_tail(&bf->list, &sc->txbuf);
@@ -2650,7 +2651,7 @@ ath5k_stop_hw(struct ath5k_softc *sc)
2650 ATH5K_DBG(sc, ATH5K_DEBUG_RESET, 2651 ATH5K_DBG(sc, ATH5K_DEBUG_RESET,
2651 "putting device to sleep\n"); 2652 "putting device to sleep\n");
2652 } 2653 }
2653 ath5k_txbuf_free(sc, sc->bbuf); 2654 ath5k_txbuf_free_skb(sc, sc->bbuf);
2654 2655
2655 mmiowb(); 2656 mmiowb();
2656 mutex_unlock(&sc->lock); 2657 mutex_unlock(&sc->lock);
@@ -3376,7 +3377,7 @@ ath5k_beacon_update(struct ieee80211_hw *hw, struct ieee80211_vif *vif)
3376 3377
3377 ath5k_debug_dump_skb(sc, skb, "BC ", 1); 3378 ath5k_debug_dump_skb(sc, skb, "BC ", 1);
3378 3379
3379 ath5k_txbuf_free(sc, sc->bbuf); 3380 ath5k_txbuf_free_skb(sc, sc->bbuf);
3380 sc->bbuf->skb = skb; 3381 sc->bbuf->skb = skb;
3381 ret = ath5k_beacon_setup(sc, sc->bbuf); 3382 ret = ath5k_beacon_setup(sc, sc->bbuf);
3382 if (ret) 3383 if (ret)