ath11k: fix warning in ath11k_mhi_config
authorAnilkumar Kolli <akolli@codeaurora.org>
Thu, 8 Apr 2021 04:57:10 +0000 (10:27 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 22 Apr 2021 14:05:08 +0000 (17:05 +0300)
commitff9f732a87caa5f7bab72bea3aaad58db9b1ac60
treef292720c3b78551f6d72e56ae2b0fea66a1048e0
parent6dc89f070d2844900891b4efff0bf300ad8c07d2
ath11k: fix warning in ath11k_mhi_config

Initialize static variable ath11k_mhi_config for all hw_rev,
return error for unknown hw_rev.
This patch fixes below Smatch warning:
    drivers/net/wireless/ath/ath11k/mhi.c:357 ath11k_mhi_register()
    error: uninitialized symbol 'ath11k_mhi_config'.

Tested-on: QCN9074 hw1.0 PCI WLAN.HK.2.4.0.1-01734-QCAHKSWPL_SILICONZ-1

Fixes: a233811ef600 ("ath11k: Add qcn9074 mhi controller config")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Anilkumar Kolli <akolli@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/1617857830-19315-1-git-send-email-akolli@codeaurora.org
drivers/net/wireless/ath/ath11k/mhi.c