summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ath/ath9k/common-spectral.c
diff options
context:
space:
mode:
authorNick Kossifidis <mickflemm@gmail.com>2015-04-30 02:51:18 +0300
committerKalle Valo <kvalo@codeaurora.org>2015-05-09 16:46:15 +0300
commit9acc98b9ecf9d12bfc6e3f914f3fc446d49b8641 (patch)
tree95de5ffd3dd9776204d7ddf40dc895105e0c01b6 /drivers/net/wireless/ath/ath9k/common-spectral.c
parent0f2c75de6422f63d614ce5e1ac13d83968c19fec (diff)
downloadlinux-9acc98b9ecf9d12bfc6e3f914f3fc446d49b8641.tar.xz
ath9k: No need for that extra memcpy
No need to copy the frame to the temporary buffer when its length is ok. Signed-off-by: Nick Kossifidis <mickflemm@gmail.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/common-spectral.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/common-spectral.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/wireless/ath/ath9k/common-spectral.c b/drivers/net/wireless/ath/ath9k/common-spectral.c
index 0c9bc9ea5d9d..b8682bc4f7ac 100644
--- a/drivers/net/wireless/ath/ath9k/common-spectral.c
+++ b/drivers/net/wireless/ath/ath9k/common-spectral.c
@@ -620,11 +620,9 @@ int ath_cmn_process_fft(struct ath_spec_scan_priv *spec_priv, struct ieee80211_h
}
/* Process a normal frame */
- if (sample_bytes == sample_len) {
- memcpy(sample_buf, sample_start, sample_len);
- ret = fft_handler(rs, spec_priv, sample_buf,
+ if (sample_bytes == sample_len)
+ ret = fft_handler(rs, spec_priv, sample_start,
tsf, freq, chan_type);
- }
/* Short report processed, break out of the
* loop.