]> git.ipfire.org Git - thirdparty/linux.git/commit
wifi: ath10k: use = {} to initialize pm_qos_request instead of memset
authorZhongqiu Han <zhongqiu.han@oss.qualcomm.com>
Thu, 30 Oct 2025 13:00:22 +0000 (21:00 +0800)
committerJeff Johnson <jeff.johnson@oss.qualcomm.com>
Thu, 30 Oct 2025 21:55:08 +0000 (14:55 -0700)
commit877f9c22fdf424c657de757bfe8543cf77461324
tree8918332c92e82d464709cb52794ac6b3146b660e
parente70515039d44be61b6a73aafb401d141b0034d12
wifi: ath10k: use = {} to initialize pm_qos_request instead of memset

Initialize the pm_qos_request structure using = {} instead of memset() in
ath10k_download_fw(). This ensures the structure is properly zeroed before
passing it to cpu_latency_qos_add_request(), and improves efficiency by
avoiding an explicit runtime memset.

Signed-off-by: Zhongqiu Han <zhongqiu.han@oss.qualcomm.com>
Reviewed-by: Vasanthakumar Thiagarajan <vasanthakumar.thiagarajan@oss.qualcomm.com>
Link: https://patch.msgid.link/20251030130023.1836808-2-zhongqiu.han@oss.qualcomm.com
Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
drivers/net/wireless/ath/ath10k/core.c