wifi: ath12k: remove redundant memset() in ath12k_hal_reo_qdesc_setup()
authorDmitry Antipov <dmantipov@yandex.ru>
Mon, 9 Oct 2023 07:13:53 +0000 (10:13 +0300)
committerKalle Valo <quic_kvalo@quicinc.com>
Tue, 10 Oct 2023 07:21:43 +0000 (10:21 +0300)
Since 'ath12k_dp_rx_peer_tid_setup()' is the only place where
'struct hal_rx_reo_queue' object is allocated with 'kzalloc()',
call to 'memset()' in 'ath12k_hal_reo_qdesc_setup()' may be
dropped. Compile tested only.

Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20231002182856.131254-1-dmantipov@yandex.ru
drivers/net/wireless/ath/ath12k/hal_rx.c

index ee61a6462fdcf416b7570742d57664de27b75b67..f6afbd8196bf535a93f2bf63a2e91290d791e1f3 100644 (file)
@@ -713,8 +713,6 @@ void ath12k_hal_reo_qdesc_setup(struct hal_rx_reo_queue *qdesc,
 {
        struct hal_rx_reo_queue_ext *ext_desc;
 
-       memset(qdesc, 0, sizeof(*qdesc));
-
        ath12k_hal_reo_set_desc_hdr(&qdesc->desc_hdr, HAL_DESC_REO_OWNED,
                                    HAL_DESC_REO_QUEUE_DESC,
                                    REO_QUEUE_DESC_MAGIC_DEBUG_PATTERN_0);