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>
This commit is contained in:
parent
0f2c75de64
commit
9acc98b9ec
@ -620,11 +620,9 @@ int ath_cmn_process_fft(struct ath_spec_scan_priv *spec_priv, struct ieee80211_h
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Process a normal frame */
|
/* Process a normal frame */
|
||||||
if (sample_bytes == sample_len) {
|
if (sample_bytes == sample_len)
|
||||||
memcpy(sample_buf, sample_start, sample_len);
|
ret = fft_handler(rs, spec_priv, sample_start,
|
||||||
ret = fft_handler(rs, spec_priv, sample_buf,
|
|
||||||
tsf, freq, chan_type);
|
tsf, freq, chan_type);
|
||||||
}
|
|
||||||
|
|
||||||
/* Short report processed, break out of the
|
/* Short report processed, break out of the
|
||||||
* loop.
|
* loop.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user