[PATCH 3/7] ath10k: remove void pointer from struct ath10k_pci_compl
Gabor Juhos
juhosg at openwrt.org
Fri Aug 30 16:46:41 EDT 2013
2013.08.30. 14:30 keltezéssel, Kalle Valo írta:
> Void pointers are bad, mmkay.
>
> No functional changes.
>
> Signed-off-by: Kalle Valo <kvalo at qca.qualcomm.com>
> ---
> drivers/net/wireless/ath/ath10k/pci.c | 12 ++++++------
> drivers/net/wireless/ath/ath10k/pci.h | 2 +-
> 2 files changed, 7 insertions(+), 7 deletions(-)
>
<snip>
> @@ -1026,7 +1026,7 @@ static void ath10k_pci_process_ce(struct ath10k *ar)
> break;
> }
>
> - skb = (struct sk_buff *)compl->transfer_context;
> + skb = (struct sk_buff *)compl->skb;
The cast can be removed from here as well.
> nbytes = compl->nbytes;
>
> ath10k_dbg(ATH10K_DBG_PCI,
> diff --git a/drivers/net/wireless/ath/ath10k/pci.h b/drivers/net/wireless/ath/ath10k/pci.h
> index c65fe1b..2e1f422 100644
> --- a/drivers/net/wireless/ath/ath10k/pci.h
> +++ b/drivers/net/wireless/ath/ath10k/pci.h
> @@ -54,7 +54,7 @@ struct ath10k_pci_compl {
> enum ath10k_pci_compl_state state;
> struct ath10k_ce_pipe *ce_state;
> struct ath10k_pci_pipe *pipe_info;
> - void *transfer_context;
> + struct sk_buff *skb;
> unsigned int nbytes;
> unsigned int transfer_id;
> unsigned int flags;
>
>
> _______________________________________________
> ath10k mailing list
> ath10k at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/ath10k
>
More information about the ath10k
mailing list