* [PATCH] iwlwifi: mvm: remove set but not used variable 'he_phy_data'
@ 2018-10-05 10:47 ` YueHaibing
0 siblings, 0 replies; 5+ messages in thread
From: YueHaibing @ 2018-10-05 10:47 UTC (permalink / raw)
To: Johannes Berg, Emmanuel Grumbach, Luca Coelho,
Intel Linux Wireless, Kalle Valo, Golan Ben Ami, Sara Sharon,
Shaul Triebitz, Liad Kaufman
Cc: YueHaibing, linux-wireless, kernel-janitors, netdev
Fixes gcc '-Wunused-but-set-variable' warning:
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c: In function 'iwl_mvm_rx_mpdu_mq':
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c:1386:7: warning:
variable 'he_phy_data' set but not used [-Wunused-but-set-variable]
u64 he_phy_data;
'he_phy_data' never used since be introduce in
commit 18ead597daa1 ("iwlwifi: support new rx_mpdu_desc api")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c b/drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
index 894dd63..7eaa586 100644
--- a/drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
+++ b/drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
@@ -1383,12 +1383,6 @@ void iwl_mvm_rx_mpdu_mq(struct iwl_mvm *mvm, struct napi_struct *napi,
/* update aggregation data for monitor sake on default queue */
if (!queue && (phy_info & IWL_RX_MPDU_PHY_AMPDU)) {
bool toggle_bit = phy_info & IWL_RX_MPDU_PHY_AMPDU_TOGGLE;
- u64 he_phy_data;
-
- if (mvm->trans->cfg->device_family >= IWL_DEVICE_FAMILY_22560)
- he_phy_data = le64_to_cpu(desc->v3.he_phy_data);
- else
- he_phy_data = le64_to_cpu(desc->v1.he_phy_data);
rx_status->flag |= RX_FLAG_AMPDU_DETAILS;
rx_status->ampdu_reference = mvm->ampdu_ref;
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH] iwlwifi: mvm: remove set but not used variable 'he_phy_data'
@ 2018-10-05 10:47 ` YueHaibing
0 siblings, 0 replies; 5+ messages in thread
From: YueHaibing @ 2018-10-05 10:47 UTC (permalink / raw)
To: Johannes Berg, Emmanuel Grumbach, Luca Coelho,
Intel Linux Wireless, Kalle Valo, Golan Ben Ami, Sara Sharon,
Shaul Triebitz, Liad Kaufman
Cc: YueHaibing, linux-wireless, kernel-janitors, netdev
Fixes gcc '-Wunused-but-set-variable' warning:
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c: In function 'iwl_mvm_rx_mpdu_mq':
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c:1386:7: warning:
variable 'he_phy_data' set but not used [-Wunused-but-set-variable]
u64 he_phy_data;
'he_phy_data' never used since be introduce in
commit 18ead597daa1 ("iwlwifi: support new rx_mpdu_desc api")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c b/drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
index 894dd63..7eaa586 100644
--- a/drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
+++ b/drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
@@ -1383,12 +1383,6 @@ void iwl_mvm_rx_mpdu_mq(struct iwl_mvm *mvm, struct napi_struct *napi,
/* update aggregation data for monitor sake on default queue */
if (!queue && (phy_info & IWL_RX_MPDU_PHY_AMPDU)) {
bool toggle_bit = phy_info & IWL_RX_MPDU_PHY_AMPDU_TOGGLE;
- u64 he_phy_data;
-
- if (mvm->trans->cfg->device_family >= IWL_DEVICE_FAMILY_22560)
- he_phy_data = le64_to_cpu(desc->v3.he_phy_data);
- else
- he_phy_data = le64_to_cpu(desc->v1.he_phy_data);
rx_status->flag |= RX_FLAG_AMPDU_DETAILS;
rx_status->ampdu_reference = mvm->ampdu_ref;
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] iwlwifi: mvm: remove set but not used variable 'he_phy_data'
@ 2018-10-17 7:16 ` Luciano Coelho
0 siblings, 0 replies; 5+ messages in thread
From: Luciano Coelho @ 2018-10-17 7:16 UTC (permalink / raw)
To: YueHaibing, Johannes Berg, Emmanuel Grumbach,
Intel Linux Wireless, Kalle Valo, Golan Ben Ami, Sara Sharon,
Shaul Triebitz, Liad Kaufman
Cc: linux-wireless, kernel-janitors, netdev
On Fri, 2018-10-05 at 10:47 +0000, YueHaibing wrote:
> Fixes gcc '-Wunused-but-set-variable' warning:
>
> drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c: In function
> 'iwl_mvm_rx_mpdu_mq':
> drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c:1386:7: warning:
> variable 'he_phy_data' set but not used [-Wunused-but-set-variable]
> u64 he_phy_data;
>
> 'he_phy_data' never used since be introduce in
> commit 18ead597daa1 ("iwlwifi: support new rx_mpdu_desc api")
>
> Signed-off-by: YueHaibing <yuehaibing@huawei.com>
> ---
Thanks, Yue! This was a merge damage when I applied the HE patches for
iwlwifi.
I've queued this and will send it out as part of the series for 4.21.
Then it will trickle down as needed.
--
Cheers,
Luca.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] iwlwifi: mvm: remove set but not used variable 'he_phy_data'
@ 2018-10-17 7:16 ` Luciano Coelho
0 siblings, 0 replies; 5+ messages in thread
From: Luciano Coelho @ 2018-10-17 7:16 UTC (permalink / raw)
To: YueHaibing, Johannes Berg, Emmanuel Grumbach,
Intel Linux Wireless, Kalle Valo, Golan Ben Ami, Sara Sharon,
Shaul Triebitz, Liad Kaufman
Cc: linux-wireless-u79uwXL29TY76Z2rM5mHXA,
kernel-janitors-u79uwXL29TY76Z2rM5mHXA,
netdev-u79uwXL29TY76Z2rM5mHXA
On Fri, 2018-10-05 at 10:47 +0000, YueHaibing wrote:
> Fixes gcc '-Wunused-but-set-variable' warning:
>
> drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c: In function
> 'iwl_mvm_rx_mpdu_mq':
> drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c:1386:7: warning:
> variable 'he_phy_data' set but not used [-Wunused-but-set-variable]
> u64 he_phy_data;
>
> 'he_phy_data' never used since be introduce in
> commit 18ead597daa1 ("iwlwifi: support new rx_mpdu_desc api")
>
> Signed-off-by: YueHaibing <yuehaibing-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
> ---
Thanks, Yue! This was a merge damage when I applied the HE patches for
iwlwifi.
I've queued this and will send it out as part of the series for 4.21.
Then it will trickle down as needed.
--
Cheers,
Luca.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] iwlwifi: mvm: remove set but not used variable 'he_phy_data'
@ 2018-10-17 7:16 ` Luciano Coelho
0 siblings, 0 replies; 5+ messages in thread
From: Luciano Coelho @ 2018-10-17 7:16 UTC (permalink / raw)
To: YueHaibing, Johannes Berg, Emmanuel Grumbach,
Intel Linux Wireless, Kalle Valo, Golan Ben Ami, Sara Sharon,
Shaul Triebitz, Liad Kaufman
Cc: linux-wireless, kernel-janitors, netdev
On Fri, 2018-10-05 at 10:47 +0000, YueHaibing wrote:
> Fixes gcc '-Wunused-but-set-variable' warning:
>
> drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c: In function
> 'iwl_mvm_rx_mpdu_mq':
> drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c:1386:7: warning:
> variable 'he_phy_data' set but not used [-Wunused-but-set-variable]
> u64 he_phy_data;
>
> 'he_phy_data' never used since be introduce in
> commit 18ead597daa1 ("iwlwifi: support new rx_mpdu_desc api")
>
> Signed-off-by: YueHaibing <yuehaibing@huawei.com>
> ---
Thanks, Yue! This was a merge damage when I applied the HE patches for
iwlwifi.
I've queued this and will send it out as part of the series for 4.21.
Then it will trickle down as needed.
--
Cheers,
Luca.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2018-10-17 7:16 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-05 10:47 [PATCH] iwlwifi: mvm: remove set but not used variable 'he_phy_data' YueHaibing
2018-10-05 10:47 ` YueHaibing
2018-10-17 7:16 ` Luciano Coelho
2018-10-17 7:16 ` Luciano Coelho
2018-10-17 7:16 ` Luciano Coelho
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.