ath10k: cleanup calling ath10k_htt_rx_h_unchain
authorMohammed Shafi Shajakhan <mohammed@qti.qualcomm.com>
Tue, 4 Oct 2016 15:49:59 +0000 (21:19 +0530)
committerKalle Valo <kvalo@qca.qualcomm.com>
Thu, 13 Oct 2016 13:47:50 +0000 (16:47 +0300)
commit7543d11682ef4ddc13d289b423c07356cc0d3672
tree8e49ce5b5ecedac1e7f05e0f99e8c21f6f6a9534
parentfdb6e4839e3ad98b9b51be00e1f99d63db402030
ath10k: cleanup calling ath10k_htt_rx_h_unchain

'ath10k_htt_rx_h_unchain' needs to be called only if the return
value from 'ath10k_htt_rx_amsdu_pop' is 1('chained msdu's'), this
change makes it more explicit and avoids doing a skb_peek, fetching
rx descriptor pointer, checking rx msdu decap format for the case of
ret = 0 (unchained msdus). Found this change during code walk through,
not sure if this addresses any issue.

Signed-off-by: Mohammed Shafi Shajakhan <mohammed@qti.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/htt_rx.c