summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ath
diff options
context:
space:
mode:
authorZheng Yongjun <zhengyongjun3@huawei.com>2021-01-18 18:26:00 +0200
committerKalle Valo <kvalo@codeaurora.org>2021-01-26 18:24:56 +0200
commit337cd0d3ce0c2e005b650d8ab8f2b05a91ca132e (patch)
treef30b2252758b787f6cb4520b4de8fa2044b70ef1 /drivers/net/wireless/ath
parent0d96968315d7ffbd70d608b29e9bea084210b96d (diff)
wcn36xx: Remove unnecessary memset
memcpy operation is next to memset code, and the size to copy is equals to the size to memset, so the memset operation is unnecessary, remove it. Signed-off-by: Zheng Yongjun <zhengyongjun3@huawei.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org> Link: https://lore.kernel.org/r/20201223012516.24286-1-zhengyongjun3@huawei.com
Diffstat (limited to 'drivers/net/wireless/ath')
-rw-r--r--drivers/net/wireless/ath/wcn36xx/smd.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/wcn36xx/smd.c b/drivers/net/wireless/ath/wcn36xx/smd.c
index 5445277dd8de..28d3ee3ad4b9 100644
--- a/drivers/net/wireless/ath/wcn36xx/smd.c
+++ b/drivers/net/wireless/ath/wcn36xx/smd.c
@@ -485,7 +485,6 @@ static void init_hal_msg(struct wcn36xx_hal_msg_header *hdr,
#define PREPARE_HAL_PTT_MSG_BUF(send_buf, p_msg_body) \
do { \
- memset(send_buf, 0, p_msg_body->header.len); \
memcpy(send_buf, p_msg_body, p_msg_body->header.len); \
} while (0)