diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-12-14 17:03:35 (GMT) |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-12-18 20:23:17 (GMT) |
commit | f40c46082717cea32ba1852c8217cbb9693fe80f (patch) | |
tree | c053daef1a743fd7b2d0101397cd33c42fdf3fe6 /drivers/net/wireless/ath/ath9k/common.c | |
parent | c8aa5ab7d53b71fd019a2ee03d9b39517a89ff00 (diff) | |
download | linux-f40c46082717cea32ba1852c8217cbb9693fe80f.tar.xz |
ath9k_common: get rid of an unnecessary variable
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>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/common.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/common.c | 4 |
1 files changed, 1 insertions, 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; |