* [PATCH] ath10k: remove unused variable 'id' in ath10k_pci_tx_pipe_cleanup()
@ 2015-06-02 7:14 ` Raja Mani
0 siblings, 0 replies; 4+ messages in thread
From: Raja Mani @ 2015-06-02 7:14 UTC (permalink / raw)
To: kvalo; +Cc: linux-wireless, ath10k, Raja Mani
mete_data is extracted from ce descriptor and stored in variable 'id'.
later, id is not used anywhere in the same function.
Signed-off-by: Raja Mani <rmani@qti.qualcomm.com>
---
drivers/net/wireless/ath/ath10k/pci.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/net/wireless/ath/ath10k/pci.c b/drivers/net/wireless/ath/ath10k/pci.c
index 969a123..bbc349a 100644
--- a/drivers/net/wireless/ath/ath10k/pci.c
+++ b/drivers/net/wireless/ath/ath10k/pci.c
@@ -1275,7 +1275,6 @@ static void ath10k_pci_tx_pipe_cleanup(struct ath10k_pci_pipe *pci_pipe)
struct ath10k_ce_ring *ce_ring;
struct ce_desc *ce_desc;
struct sk_buff *skb;
- unsigned int id;
int i;
ar = pci_pipe->hif_ce_state;
@@ -1299,8 +1298,6 @@ static void ath10k_pci_tx_pipe_cleanup(struct ath10k_pci_pipe *pci_pipe)
continue;
ce_ring->per_transfer_context[i] = NULL;
- id = MS(__le16_to_cpu(ce_desc[i].flags),
- CE_DESC_FLAGS_META_DATA);
ar_pci->msg_callbacks_current.tx_completion(ar, skb);
}
--
1.7.10.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH] ath10k: remove unused variable 'id' in ath10k_pci_tx_pipe_cleanup()
@ 2015-06-02 7:14 ` Raja Mani
0 siblings, 0 replies; 4+ messages in thread
From: Raja Mani @ 2015-06-02 7:14 UTC (permalink / raw)
To: kvalo; +Cc: linux-wireless, Raja Mani, ath10k
mete_data is extracted from ce descriptor and stored in variable 'id'.
later, id is not used anywhere in the same function.
Signed-off-by: Raja Mani <rmani@qti.qualcomm.com>
---
drivers/net/wireless/ath/ath10k/pci.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/net/wireless/ath/ath10k/pci.c b/drivers/net/wireless/ath/ath10k/pci.c
index 969a123..bbc349a 100644
--- a/drivers/net/wireless/ath/ath10k/pci.c
+++ b/drivers/net/wireless/ath/ath10k/pci.c
@@ -1275,7 +1275,6 @@ static void ath10k_pci_tx_pipe_cleanup(struct ath10k_pci_pipe *pci_pipe)
struct ath10k_ce_ring *ce_ring;
struct ce_desc *ce_desc;
struct sk_buff *skb;
- unsigned int id;
int i;
ar = pci_pipe->hif_ce_state;
@@ -1299,8 +1298,6 @@ static void ath10k_pci_tx_pipe_cleanup(struct ath10k_pci_pipe *pci_pipe)
continue;
ce_ring->per_transfer_context[i] = NULL;
- id = MS(__le16_to_cpu(ce_desc[i].flags),
- CE_DESC_FLAGS_META_DATA);
ar_pci->msg_callbacks_current.tx_completion(ar, skb);
}
--
1.7.10.4
_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] ath10k: remove unused variable 'id' in ath10k_pci_tx_pipe_cleanup()
2015-06-02 7:14 ` Raja Mani
@ 2015-06-02 7:21 ` Michal Kazior
-1 siblings, 0 replies; 4+ messages in thread
From: Michal Kazior @ 2015-06-02 7:21 UTC (permalink / raw)
To: Raja Mani; +Cc: Kalle Valo, linux-wireless, ath10k
On 2 June 2015 at 09:14, Raja Mani <rmani@qti.qualcomm.com> wrote:
> mete_data is extracted from ce descriptor and stored in variable 'id'.
> later, id is not used anywhere in the same function.
>
> Signed-off-by: Raja Mani <rmani@qti.qualcomm.com>
> ---
> drivers/net/wireless/ath/ath10k/pci.c | 3 ---
> 1 file changed, 3 deletions(-)
>
> diff --git a/drivers/net/wireless/ath/ath10k/pci.c b/drivers/net/wireless/ath/ath10k/pci.c
> index 969a123..bbc349a 100644
> --- a/drivers/net/wireless/ath/ath10k/pci.c
> +++ b/drivers/net/wireless/ath/ath10k/pci.c
> @@ -1275,7 +1275,6 @@ static void ath10k_pci_tx_pipe_cleanup(struct ath10k_pci_pipe *pci_pipe)
> struct ath10k_ce_ring *ce_ring;
> struct ce_desc *ce_desc;
> struct sk_buff *skb;
> - unsigned int id;
> int i;
>
> ar = pci_pipe->hif_ce_state;
> @@ -1299,8 +1298,6 @@ static void ath10k_pci_tx_pipe_cleanup(struct ath10k_pci_pipe *pci_pipe)
> continue;
>
> ce_ring->per_transfer_context[i] = NULL;
> - id = MS(__le16_to_cpu(ce_desc[i].flags),
> - CE_DESC_FLAGS_META_DATA);
>
> ar_pci->msg_callbacks_current.tx_completion(ar, skb);
Good catch. I forgot to remove this. I guess one could say this qualifies as:
Fixes: d84a512dca23 ("ath10k: remove transfer_id from
ath10k_hif_cb::tx_completion")
Michał
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] ath10k: remove unused variable 'id' in ath10k_pci_tx_pipe_cleanup()
@ 2015-06-02 7:21 ` Michal Kazior
0 siblings, 0 replies; 4+ messages in thread
From: Michal Kazior @ 2015-06-02 7:21 UTC (permalink / raw)
To: Raja Mani; +Cc: Kalle Valo, linux-wireless, ath10k
On 2 June 2015 at 09:14, Raja Mani <rmani@qti.qualcomm.com> wrote:
> mete_data is extracted from ce descriptor and stored in variable 'id'.
> later, id is not used anywhere in the same function.
>
> Signed-off-by: Raja Mani <rmani@qti.qualcomm.com>
> ---
> drivers/net/wireless/ath/ath10k/pci.c | 3 ---
> 1 file changed, 3 deletions(-)
>
> diff --git a/drivers/net/wireless/ath/ath10k/pci.c b/drivers/net/wireless/ath/ath10k/pci.c
> index 969a123..bbc349a 100644
> --- a/drivers/net/wireless/ath/ath10k/pci.c
> +++ b/drivers/net/wireless/ath/ath10k/pci.c
> @@ -1275,7 +1275,6 @@ static void ath10k_pci_tx_pipe_cleanup(struct ath10k_pci_pipe *pci_pipe)
> struct ath10k_ce_ring *ce_ring;
> struct ce_desc *ce_desc;
> struct sk_buff *skb;
> - unsigned int id;
> int i;
>
> ar = pci_pipe->hif_ce_state;
> @@ -1299,8 +1298,6 @@ static void ath10k_pci_tx_pipe_cleanup(struct ath10k_pci_pipe *pci_pipe)
> continue;
>
> ce_ring->per_transfer_context[i] = NULL;
> - id = MS(__le16_to_cpu(ce_desc[i].flags),
> - CE_DESC_FLAGS_META_DATA);
>
> ar_pci->msg_callbacks_current.tx_completion(ar, skb);
Good catch. I forgot to remove this. I guess one could say this qualifies as:
Fixes: d84a512dca23 ("ath10k: remove transfer_id from
ath10k_hif_cb::tx_completion")
Michał
_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-06-02 7:22 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-02 7:14 [PATCH] ath10k: remove unused variable 'id' in ath10k_pci_tx_pipe_cleanup() Raja Mani
2015-06-02 7:14 ` Raja Mani
2015-06-02 7:21 ` Michal Kazior
2015-06-02 7:21 ` Michal Kazior
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.