diff options
author | Kalle Valo <kvalo@qca.qualcomm.com> | 2013-09-01 03:01:46 -0400 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2013-09-03 02:49:07 -0400 |
commit | aa5c1db4451596be424f8df511aa5435a7d51e6c (patch) | |
tree | 689acfaa821fac3f52c08dfec43c92f902bbc429 /drivers/net/wireless/ath/ath10k/pci.c | |
parent | d88effbaa6878eaf48ad5da453d3159c500da563 (diff) |
ath10k: remove void pointer from struct ath10k_pci_compl
Void pointers are bad, mmkay.
No functional changes.
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath10k/pci.c')
-rw-r--r-- | drivers/net/wireless/ath/ath10k/pci.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/wireless/ath/ath10k/pci.c b/drivers/net/wireless/ath/ath10k/pci.c index 362814ab5965..418de1ecfc8a 100644 --- a/drivers/net/wireless/ath/ath10k/pci.c +++ b/drivers/net/wireless/ath/ath10k/pci.c | |||
@@ -643,7 +643,7 @@ static void ath10k_pci_ce_send_done(struct ath10k_ce_pipe *ce_state, | |||
643 | compl->state = ATH10K_PCI_COMPL_SEND; | 643 | compl->state = ATH10K_PCI_COMPL_SEND; |
644 | compl->ce_state = ce_state; | 644 | compl->ce_state = ce_state; |
645 | compl->pipe_info = pipe_info; | 645 | compl->pipe_info = pipe_info; |
646 | compl->transfer_context = transfer_context; | 646 | compl->skb = transfer_context; |
647 | compl->nbytes = nbytes; | 647 | compl->nbytes = nbytes; |
648 | compl->transfer_id = transfer_id; | 648 | compl->transfer_id = transfer_id; |
649 | compl->flags = 0; | 649 | compl->flags = 0; |
@@ -693,7 +693,7 @@ static void ath10k_pci_ce_recv_data(struct ath10k_ce_pipe *ce_state, | |||
693 | compl->state = ATH10K_PCI_COMPL_RECV; | 693 | compl->state = ATH10K_PCI_COMPL_RECV; |
694 | compl->ce_state = ce_state; | 694 | compl->ce_state = ce_state; |
695 | compl->pipe_info = pipe_info; | 695 | compl->pipe_info = pipe_info; |
696 | compl->transfer_context = transfer_context; | 696 | compl->skb = transfer_context; |
697 | compl->nbytes = nbytes; | 697 | compl->nbytes = nbytes; |
698 | compl->transfer_id = transfer_id; | 698 | compl->transfer_id = transfer_id; |
699 | compl->flags = flags; | 699 | compl->flags = flags; |
@@ -939,7 +939,7 @@ static void ath10k_pci_stop_ce(struct ath10k *ar) | |||
939 | * their associated resources */ | 939 | * their associated resources */ |
940 | spin_lock_bh(&ar_pci->compl_lock); | 940 | spin_lock_bh(&ar_pci->compl_lock); |
941 | list_for_each_entry(compl, &ar_pci->compl_process, list) { | 941 | list_for_each_entry(compl, &ar_pci->compl_process, list) { |
942 | skb = (struct sk_buff *)compl->transfer_context; | 942 | skb = compl->skb; |
943 | ATH10K_SKB_CB(skb)->is_aborted = true; | 943 | ATH10K_SKB_CB(skb)->is_aborted = true; |
944 | } | 944 | } |
945 | spin_unlock_bh(&ar_pci->compl_lock); | 945 | spin_unlock_bh(&ar_pci->compl_lock); |
@@ -960,7 +960,7 @@ static void ath10k_pci_cleanup_ce(struct ath10k *ar) | |||
960 | 960 | ||
961 | list_for_each_entry_safe(compl, tmp, &ar_pci->compl_process, list) { | 961 | list_for_each_entry_safe(compl, tmp, &ar_pci->compl_process, list) { |
962 | list_del(&compl->list); | 962 | list_del(&compl->list); |
963 | netbuf = (struct sk_buff *)compl->transfer_context; | 963 | netbuf = compl->skb; |
964 | dev_kfree_skb_any(netbuf); | 964 | dev_kfree_skb_any(netbuf); |
965 | kfree(compl); | 965 | kfree(compl); |
966 | } | 966 | } |
@@ -1014,7 +1014,7 @@ static void ath10k_pci_process_ce(struct ath10k *ar) | |||
1014 | switch (compl->state) { | 1014 | switch (compl->state) { |
1015 | case ATH10K_PCI_COMPL_SEND: | 1015 | case ATH10K_PCI_COMPL_SEND: |
1016 | cb->tx_completion(ar, | 1016 | cb->tx_completion(ar, |
1017 | compl->transfer_context, | 1017 | compl->skb, |
1018 | compl->transfer_id); | 1018 | compl->transfer_id); |
1019 | send_done = 1; | 1019 | send_done = 1; |
1020 | break; | 1020 | break; |
@@ -1026,7 +1026,7 @@ static void ath10k_pci_process_ce(struct ath10k *ar) | |||
1026 | break; | 1026 | break; |
1027 | } | 1027 | } |
1028 | 1028 | ||
1029 | skb = (struct sk_buff *)compl->transfer_context; | 1029 | skb = compl->skb; |
1030 | nbytes = compl->nbytes; | 1030 | nbytes = compl->nbytes; |
1031 | 1031 | ||
1032 | ath10k_dbg(ATH10K_DBG_PCI, | 1032 | ath10k_dbg(ATH10K_DBG_PCI, |