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>
diff --git a/drivers/net/wireless/ath/ath9k/common-spectral.c b/drivers/net/wireless/ath/ath9k/common-spectral.c
index 0c9bc9e..b8682bc 100644
--- a/drivers/net/wireless/ath/ath9k/common-spectral.c
+++ b/drivers/net/wireless/ath/ath9k/common-spectral.c
@@ -620,11 +620,9 @@
}
/* 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.