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

Initialize the bmi_target_info structure using = {} at declaration time
instead of calling memset() in each bus-specific code path. This
simplifies the code and avoids an explicit 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-3-zhongqiu.han@oss.qualcomm.com
Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
drivers/net/wireless/ath/ath10k/core.c