mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-05-24 10:39:52 +00:00
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>
This commit is contained in:
parent
d88effbaa6
commit
aa5c1db445
2 changed files with 7 additions and 7 deletions
|
@ -643,7 +643,7 @@ static void ath10k_pci_ce_send_done(struct ath10k_ce_pipe *ce_state,
|
||||||
compl->state = ATH10K_PCI_COMPL_SEND;
|
compl->state = ATH10K_PCI_COMPL_SEND;
|
||||||
compl->ce_state = ce_state;
|
compl->ce_state = ce_state;
|
||||||
compl->pipe_info = pipe_info;
|
compl->pipe_info = pipe_info;
|
||||||
compl->transfer_context = transfer_context;
|
compl->skb = transfer_context;
|
||||||
compl->nbytes = nbytes;
|
compl->nbytes = nbytes;
|
||||||
compl->transfer_id = transfer_id;
|
compl->transfer_id = transfer_id;
|
||||||
compl->flags = 0;
|
compl->flags = 0;
|
||||||
|
@ -693,7 +693,7 @@ static void ath10k_pci_ce_recv_data(struct ath10k_ce_pipe *ce_state,
|
||||||
compl->state = ATH10K_PCI_COMPL_RECV;
|
compl->state = ATH10K_PCI_COMPL_RECV;
|
||||||
compl->ce_state = ce_state;
|
compl->ce_state = ce_state;
|
||||||
compl->pipe_info = pipe_info;
|
compl->pipe_info = pipe_info;
|
||||||
compl->transfer_context = transfer_context;
|
compl->skb = transfer_context;
|
||||||
compl->nbytes = nbytes;
|
compl->nbytes = nbytes;
|
||||||
compl->transfer_id = transfer_id;
|
compl->transfer_id = transfer_id;
|
||||||
compl->flags = flags;
|
compl->flags = flags;
|
||||||
|
@ -939,7 +939,7 @@ static void ath10k_pci_stop_ce(struct ath10k *ar)
|
||||||
* their associated resources */
|
* their associated resources */
|
||||||
spin_lock_bh(&ar_pci->compl_lock);
|
spin_lock_bh(&ar_pci->compl_lock);
|
||||||
list_for_each_entry(compl, &ar_pci->compl_process, list) {
|
list_for_each_entry(compl, &ar_pci->compl_process, list) {
|
||||||
skb = (struct sk_buff *)compl->transfer_context;
|
skb = compl->skb;
|
||||||
ATH10K_SKB_CB(skb)->is_aborted = true;
|
ATH10K_SKB_CB(skb)->is_aborted = true;
|
||||||
}
|
}
|
||||||
spin_unlock_bh(&ar_pci->compl_lock);
|
spin_unlock_bh(&ar_pci->compl_lock);
|
||||||
|
@ -960,7 +960,7 @@ static void ath10k_pci_cleanup_ce(struct ath10k *ar)
|
||||||
|
|
||||||
list_for_each_entry_safe(compl, tmp, &ar_pci->compl_process, list) {
|
list_for_each_entry_safe(compl, tmp, &ar_pci->compl_process, list) {
|
||||||
list_del(&compl->list);
|
list_del(&compl->list);
|
||||||
netbuf = (struct sk_buff *)compl->transfer_context;
|
netbuf = compl->skb;
|
||||||
dev_kfree_skb_any(netbuf);
|
dev_kfree_skb_any(netbuf);
|
||||||
kfree(compl);
|
kfree(compl);
|
||||||
}
|
}
|
||||||
|
@ -1014,7 +1014,7 @@ static void ath10k_pci_process_ce(struct ath10k *ar)
|
||||||
switch (compl->state) {
|
switch (compl->state) {
|
||||||
case ATH10K_PCI_COMPL_SEND:
|
case ATH10K_PCI_COMPL_SEND:
|
||||||
cb->tx_completion(ar,
|
cb->tx_completion(ar,
|
||||||
compl->transfer_context,
|
compl->skb,
|
||||||
compl->transfer_id);
|
compl->transfer_id);
|
||||||
send_done = 1;
|
send_done = 1;
|
||||||
break;
|
break;
|
||||||
|
@ -1026,7 +1026,7 @@ static void ath10k_pci_process_ce(struct ath10k *ar)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
skb = (struct sk_buff *)compl->transfer_context;
|
skb = compl->skb;
|
||||||
nbytes = compl->nbytes;
|
nbytes = compl->nbytes;
|
||||||
|
|
||||||
ath10k_dbg(ATH10K_DBG_PCI,
|
ath10k_dbg(ATH10K_DBG_PCI,
|
||||||
|
|
|
@ -54,7 +54,7 @@ struct ath10k_pci_compl {
|
||||||
enum ath10k_pci_compl_state state;
|
enum ath10k_pci_compl_state state;
|
||||||
struct ath10k_ce_pipe *ce_state;
|
struct ath10k_ce_pipe *ce_state;
|
||||||
struct ath10k_pci_pipe *pipe_info;
|
struct ath10k_pci_pipe *pipe_info;
|
||||||
void *transfer_context;
|
struct sk_buff *skb;
|
||||||
unsigned int nbytes;
|
unsigned int nbytes;
|
||||||
unsigned int transfer_id;
|
unsigned int transfer_id;
|
||||||
unsigned int flags;
|
unsigned int flags;
|
||||||
|
|
Loading…
Add table
Reference in a new issue