diff options
author | Sujith <Sujith.Manoharan@atheros.com> | 2009-03-30 05:58:36 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-04-22 16:54:32 -0400 |
commit | a22be22ab8fe571cce88d0d30b49f297a563c4a7 (patch) | |
tree | 626d81aa65679c2f6486f14e869ac8d5d544d368 /drivers/net/wireless/ath9k/xmit.c | |
parent | 0ef1f168b6bc82b0b157c568e764b75961867970 (diff) |
ath9k: Avoid unneeded casts
Change the void pointer to struct sk_buff and access
bf_mpdu directly, removing all casts in the process.
Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath9k/xmit.c')
-rw-r--r-- | drivers/net/wireless/ath9k/xmit.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/wireless/ath9k/xmit.c b/drivers/net/wireless/ath9k/xmit.c index 689bdbf78808..87bbeaa6432f 100644 --- a/drivers/net/wireless/ath9k/xmit.c +++ b/drivers/net/wireless/ath9k/xmit.c | |||
@@ -283,7 +283,7 @@ static void ath_tx_complete_aggr(struct ath_softc *sc, struct ath_txq *txq, | |||
283 | int isaggr, txfail, txpending, sendbar = 0, needreset = 0, nbad = 0; | 283 | int isaggr, txfail, txpending, sendbar = 0, needreset = 0, nbad = 0; |
284 | bool rc_update = true; | 284 | bool rc_update = true; |
285 | 285 | ||
286 | skb = (struct sk_buff *)bf->bf_mpdu; | 286 | skb = bf->bf_mpdu; |
287 | hdr = (struct ieee80211_hdr *)skb->data; | 287 | hdr = (struct ieee80211_hdr *)skb->data; |
288 | 288 | ||
289 | rcu_read_lock(); | 289 | rcu_read_lock(); |
@@ -444,7 +444,7 @@ static u32 ath_lookup_rate(struct ath_softc *sc, struct ath_buf *bf, | |||
444 | u16 aggr_limit, legacy = 0, maxampdu; | 444 | u16 aggr_limit, legacy = 0, maxampdu; |
445 | int i; | 445 | int i; |
446 | 446 | ||
447 | skb = (struct sk_buff *)bf->bf_mpdu; | 447 | skb = bf->bf_mpdu; |
448 | tx_info = IEEE80211_SKB_CB(skb); | 448 | tx_info = IEEE80211_SKB_CB(skb); |
449 | rates = tx_info->control.rates; | 449 | rates = tx_info->control.rates; |
450 | tx_info_priv = (struct ath_tx_info_priv *)tx_info->rate_driver_data[0]; | 450 | tx_info_priv = (struct ath_tx_info_priv *)tx_info->rate_driver_data[0]; |
@@ -1452,7 +1452,7 @@ static void ath_buf_set_rate(struct ath_softc *sc, struct ath_buf *bf) | |||
1452 | 1452 | ||
1453 | memset(series, 0, sizeof(struct ath9k_11n_rate_series) * 4); | 1453 | memset(series, 0, sizeof(struct ath9k_11n_rate_series) * 4); |
1454 | 1454 | ||
1455 | skb = (struct sk_buff *)bf->bf_mpdu; | 1455 | skb = bf->bf_mpdu; |
1456 | tx_info = IEEE80211_SKB_CB(skb); | 1456 | tx_info = IEEE80211_SKB_CB(skb); |
1457 | rates = tx_info->control.rates; | 1457 | rates = tx_info->control.rates; |
1458 | hdr = (struct ieee80211_hdr *)skb->data; | 1458 | hdr = (struct ieee80211_hdr *)skb->data; |
@@ -1586,7 +1586,7 @@ static int ath_tx_setup_buffer(struct ieee80211_hw *hw, struct ath_buf *bf, | |||
1586 | static void ath_tx_start_dma(struct ath_softc *sc, struct ath_buf *bf, | 1586 | static void ath_tx_start_dma(struct ath_softc *sc, struct ath_buf *bf, |
1587 | struct ath_tx_control *txctl) | 1587 | struct ath_tx_control *txctl) |
1588 | { | 1588 | { |
1589 | struct sk_buff *skb = (struct sk_buff *)bf->bf_mpdu; | 1589 | struct sk_buff *skb = bf->bf_mpdu; |
1590 | struct ieee80211_tx_info *tx_info = IEEE80211_SKB_CB(skb); | 1590 | struct ieee80211_tx_info *tx_info = IEEE80211_SKB_CB(skb); |
1591 | struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data; | 1591 | struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data; |
1592 | struct ath_node *an = NULL; | 1592 | struct ath_node *an = NULL; |
@@ -1860,7 +1860,7 @@ static int ath_tx_num_badfrms(struct ath_softc *sc, struct ath_buf *bf, | |||
1860 | static void ath_tx_rc_status(struct ath_buf *bf, struct ath_desc *ds, | 1860 | static void ath_tx_rc_status(struct ath_buf *bf, struct ath_desc *ds, |
1861 | int nbad, int txok, bool update_rc) | 1861 | int nbad, int txok, bool update_rc) |
1862 | { | 1862 | { |
1863 | struct sk_buff *skb = (struct sk_buff *)bf->bf_mpdu; | 1863 | struct sk_buff *skb = bf->bf_mpdu; |
1864 | struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data; | 1864 | struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data; |
1865 | struct ieee80211_tx_info *tx_info = IEEE80211_SKB_CB(skb); | 1865 | struct ieee80211_tx_info *tx_info = IEEE80211_SKB_CB(skb); |
1866 | struct ath_tx_info_priv *tx_info_priv = ATH_TX_INFO_PRIV(tx_info); | 1866 | struct ath_tx_info_priv *tx_info_priv = ATH_TX_INFO_PRIV(tx_info); |