mirror of https://gitee.com/openkylin/linux.git
ath10k: remove an unnecessary NULL check
The "survey" pointer is the address of an array element. We know that it can't be NULL so this check can be removed. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
parent
bd085be6ba
commit
27120f2ac9
drivers/net/wireless/ath/ath10k
|
@ -2582,7 +2582,7 @@ static void ath10k_wmi_event_chan_info_unpaired(struct ath10k *ar,
|
|||
|
||||
survey = &ar->survey[idx];
|
||||
|
||||
if (!params->mac_clk_mhz || !survey)
|
||||
if (!params->mac_clk_mhz)
|
||||
return;
|
||||
|
||||
memset(survey, 0, sizeof(*survey));
|
||||
|
|
Loading…
Reference in New Issue