Commit 27120f2a authored by Dan Carpenter's avatar Dan Carpenter Committed by Kalle Valo

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: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent bd085be6
...@@ -2582,7 +2582,7 @@ static void ath10k_wmi_event_chan_info_unpaired(struct ath10k *ar, ...@@ -2582,7 +2582,7 @@ static void ath10k_wmi_event_chan_info_unpaired(struct ath10k *ar,
survey = &ar->survey[idx]; survey = &ar->survey[idx];
if (!params->mac_clk_mhz || !survey) if (!params->mac_clk_mhz)
return; return;
memset(survey, 0, sizeof(*survey)); memset(survey, 0, sizeof(*survey));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment