projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8aa5ab
)
ath9k_common: get rid of an unnecessary variable
author
Felix Fietkau
<nbd@openwrt.org>
Sat, 14 Dec 2013 17:03:35 +0000
(18:03 +0100)
committer
John W. Linville
<linville@tuxdriver.com>
Wed, 18 Dec 2013 20:23:17 +0000
(15:23 -0500)
There's no need to truncate curchan->hw_value to u8
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/common.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/ath/ath9k/common.c
b/drivers/net/wireless/ath/ath9k/common.c
index a7e5a05b2eff88e8d367cea6403058cc2813ebbc..768c733cad31d4ef7ae1c45bd17c2e207f2ca82f 100644
(file)
--- 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;