linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 01/11] ath9k_common: get rid of an unnecessary variable
@ 2013-12-14 17:03 Felix Fietkau
  2013-12-14 17:03 ` [PATCH 02/11] ath9k: add support for reporting per-chain signal strength Felix Fietkau
                   ` (9 more replies)
  0 siblings, 10 replies; 16+ messages in thread
From: Felix Fietkau @ 2013-12-14 17:03 UTC (permalink / raw)
  To: linux-wireless; +Cc: linville

There's no need to truncate curchan->hw_value to u8

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
---
 drivers/net/wireless/ath/ath9k/common.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/net/wireless/ath/ath9k/common.c b/drivers/net/wireless/ath/ath9k/common.c
index a7e5a05..768c733 100644
--- a/drivers/net/wireless/ath/ath9k/common.c
+++ b/drivers/net/wireless/ath/ath9k/common.c
@@ -98,10 +98,8 @@ struct ath9k_channel *ath9k_cmn_get_channel(struct ieee80211_hw *hw,
 {
 	struct ieee80211_channel *curchan = chandef->chan;
 	struct ath9k_channel *channel;
-	u8 chan_idx;
 
-	chan_idx = curchan->hw_value;
-	channel = &ah->channels[chan_idx];
+	channel = &ah->channels[curchan->hw_value];
 	ath9k_cmn_update_ichannel(channel, chandef);
 
 	return channel;
-- 
1.8.3.4 (Apple Git-47)


^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2013-12-16 14:06 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-14 17:03 [PATCH 01/11] ath9k_common: get rid of an unnecessary variable Felix Fietkau
2013-12-14 17:03 ` [PATCH 02/11] ath9k: add support for reporting per-chain signal strength Felix Fietkau
2013-12-14 17:03 ` [PATCH 03/11] ath9k_hw: use a software timer for btcoex no_stomp_timer Felix Fietkau
2013-12-14 17:03 ` [PATCH 04/11] ath9k_hw: clean up generic timer code Felix Fietkau
2013-12-14 17:03 ` [PATCH 05/11] ath9k_hw: remove defunct ad-hoc mode ATIM window handling code Felix Fietkau
2013-12-14 17:03 ` [PATCH 06/11] ath9k_hw: remove ah->config.pcie_clock_req Felix Fietkau
2013-12-16  3:44   ` Sujith Manoharan
2013-12-16 11:17     ` Felix Fietkau
2013-12-16 13:09       ` Sujith Manoharan
2013-12-16 13:51         ` Felix Fietkau
2013-12-16 14:06           ` Johannes Berg
2013-12-14 17:03 ` [PATCH 07/11] ath9k_hw: simplify spur channel handling Felix Fietkau
2013-12-14 17:03 ` [PATCH 08/11] ath9k_hw: remove additional_swba_backoff Felix Fietkau
2013-12-14 17:03 ` [PATCH 09/11] ath9k_hw: remove spur related unused defines Felix Fietkau
2013-12-14 17:03 ` [PATCH 10/11] ath9k_hw: clean up station beacon timer API Felix Fietkau
2013-12-14 17:03 ` [PATCH 11/11] ath9k: properly preserve TSF across reset Felix Fietkau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).