This patch series fix the below Smatch static checker warnings Warnings: mac.c:10941 ath12k_mac_destroy() error: we previously assumed 'ab' could be null (see line 10930) mac.c:11007 ath12k_mac_allocate() error: uninitialized symbol 'ab'. mac.c:11013 ath12k_mac_allocate() error: uninitialized symbol 'ab'. v2: - Rebased on ToT Karthikeyan Periyasamy (4): wifi: ath12k: Refactor ath12k_hw set helper function argument wifi: ath12k: Refactor the ath12k_hw get helper function argument wifi: ath12k: Refactor ath12k_get_num_hw() helper function argument wifi: ath12k: Fix uninitialized variable access in ath12k_mac_allocate() function drivers/net/wireless/ath/ath12k/core.c | 16 ++++----- drivers/net/wireless/ath/ath12k/core.h | 12 +++---- drivers/net/wireless/ath/ath12k/mac.c | 47 +++++++++++++++++--------- 3 files changed, 45 insertions(+), 30 deletions(-) -- 2.34.1