ath11k: drop memset when setting up a tx cmd desc
authorJohn Crispin <john@phrozen.org>
Fri, 13 Dec 2019 15:38:33 +0000 (16:38 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 18 Dec 2019 17:27:33 +0000 (19:27 +0200)
There is no point in zero'ing out the structure if we set all values in the
following line.

Signed-off-by: John Crispin <john@phrozen.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath11k/dp_tx.c
drivers/net/wireless/ath/ath11k/hal_tx.c

index a8b9557c2346f9e9840fbaf4b244599441df95a2..28ebc414533ea3fea2efbce6600d1f3befb70d85 100644 (file)
@@ -167,8 +167,6 @@ int ath11k_dp_tx(struct ath11k *ar, struct ath11k_vif *arvif,
        skb_cb->vif = arvif->vif;
        skb_cb->ar = ar;
 
-       memset(cached_desc, 0, HAL_TCL_DESC_LEN);
-
        ath11k_hal_tx_cmd_desc_setup(ab, cached_desc, &ti);
 
        hal_ring_id = tx_ring->tcl_data_ring.ring_id;
index cbe54979876203104e1f15b9feab5e554022aacf..72a51ed65a513a8cedf2e7776dbd10d864e5cb83 100644 (file)
@@ -71,6 +71,7 @@ void ath11k_hal_tx_cmd_desc_setup(struct ath11k_base *ab, void *cmd,
                                    ti->dscp_tid_tbl_idx) |
                         FIELD_PREP(HAL_TCL_DATA_CMD_INFO3_SEARCH_INDEX,
                                    ti->bss_ast_hash);
+       tcl_cmd->info4 = 0;
 }
 
 /* Commit the descriptor to hardware */