Commit 33782a3c authored by Tamizh chelvam's avatar Tamizh chelvam Committed by Kalle Valo
Browse files

ath11k: Remove dead code while handling amsdu packets



Remove unexecuted code while handling amsdu packets.
The same logic is done before calling ath11k_dp_rx_msdu_coalesce

Signed-off-by: default avatarTamizh chelvam <tamizhr@codeaurora.org>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 39e81c6a
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -1349,12 +1349,6 @@ static int ath11k_dp_rx_msdu_coalesce(struct ath11k *ar,
	int rem_len;
	int buf_len;

	if (!rxcb->is_continuation) {
		skb_put(first, HAL_RX_DESC_SIZE + l3pad_bytes + msdu_len);
		skb_pull(first, HAL_RX_DESC_SIZE + l3pad_bytes);
		return 0;
	}

	if (WARN_ON_ONCE(msdu_len <= (DP_RX_BUFFER_SIZE -
			 (HAL_RX_DESC_SIZE + l3pad_bytes)))) {
		skb_put(first, HAL_RX_DESC_SIZE + l3pad_bytes + msdu_len);