diff mbox series

ath11k: Remove dead code while handling amsdu packets

Message ID 1564494602-5380-1-git-send-email-tamizhr@codeaurora.org (mailing list archive)
State Accepted
Commit 45ba2ded8b5fd97b5f38713904f5853250443a6e
Delegated to: Kalle Valo
Headers show
Series ath11k: Remove dead code while handling amsdu packets | expand

Commit Message

Tamizh chelvam July 30, 2019, 1:50 p.m. UTC
Remove unexecuted code while handling amsdu packets.
The same logic is done before calling ath11k_dp_rx_msdu_coalesce

Signed-off-by: Tamizh chelvam <tamizhr@codeaurora.org>
---
 drivers/net/wireless/ath/ath11k/dp_rx.c | 6 ------
 1 file changed, 6 deletions(-)

Comments

Kalle Valo Aug. 9, 2019, 6:59 a.m. UTC | #1
Tamizh chelvam <tamizhr@codeaurora.org> wrote:

> Remove unexecuted code while handling amsdu packets.
> The same logic is done before calling ath11k_dp_rx_msdu_coalesce
> 
> Signed-off-by: Tamizh chelvam <tamizhr@codeaurora.org>
> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>

Patch applied to ath11k-post-bringup branch of ath.git, thanks.

45ba2ded8b5f ath11k: Remove dead code while handling amsdu packets
diff mbox series

Patch

diff --git a/drivers/net/wireless/ath/ath11k/dp_rx.c b/drivers/net/wireless/ath/ath11k/dp_rx.c
index 3794cac..6b22003 100644
--- a/drivers/net/wireless/ath/ath11k/dp_rx.c
+++ b/drivers/net/wireless/ath/ath11k/dp_rx.c
@@ -1371,12 +1371,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);