Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ath9k_htc: remove useless memcpy

after switch to common fucntions we do not need this memcpy any more.

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>

authored by

Oleksij Rempel and committed by
John W. Linville
c8ec0f5c 341b29b9

+5 -5
+5 -5
drivers/net/wireless/ath/ath9k/htc_drv_txrx.c
··· 995 995 ath9k_htc_err_stat_rx(priv, rxstatus); 996 996 997 997 /* Get the RX status information */ 998 - memcpy(&rxbuf->rxstatus, rxstatus, HTC_RX_FRAME_HEADER_SIZE); 999 - skb_pull(skb, HTC_RX_FRAME_HEADER_SIZE); 1000 998 1001 999 memset(rx_status, 0, sizeof(struct ieee80211_rx_status)); 1002 1000 1003 - rx_status_htc_to_ath(&rx_stats, &rxbuf->rxstatus); 1001 + /* Copy everything from ath_htc_rx_status (HTC_RX_FRAME_HEADER). 1002 + * After this, we can drop this part of skb. */ 1003 + rx_status_htc_to_ath(&rx_stats, rxstatus); 1004 + rx_status->mactime = be64_to_cpu(rxstatus->rs_tstamp); 1005 + skb_pull(skb, HTC_RX_FRAME_HEADER_SIZE); 1004 1006 1005 1007 /* 1006 1008 * everything but the rate is checked here, the rate check is done ··· 1021 1019 1022 1020 rx_stats.is_mybeacon = ath_is_mybeacon(common, hdr); 1023 1021 ath9k_cmn_process_rssi(common, hw, &rx_stats, rx_status); 1024 - 1025 - rx_status->mactime = be64_to_cpu(rxbuf->rxstatus.rs_tstamp); 1026 1022 1027 1023 rx_status->band = ah->curchan->chan->band; 1028 1024 rx_status->freq = ah->curchan->chan->center_freq;