]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ath11k: Remove dead code while handling amsdu packets
authorTamizh chelvam <tamizhr@codeaurora.org>
Mon, 25 Nov 2019 16:36:25 +0000 (16:36 +0000)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 27 Nov 2019 15:46:18 +0000 (17:46 +0200)
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>
drivers/net/wireless/ath/ath11k/dp_rx.c

index 0ff0ff81adeb560498a6d995d7156a82f43047bb..7aade0314e614109a191b62dc074ce4dfcc9a4fd 100644 (file)
@@ -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);