Skip to content

Commit

Permalink
wifi: ath12k: remove redundant memset() in ath12k_hal_reo_qdesc_setup()
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Dmitry Antipov authored and Kalle Valo committed Oct 10, 2023
1 parent 71ffa1b commit 258242d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/net/wireless/ath/ath12k/hal_rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 258242d

Please sign in to comment.