aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath10k/wmi.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2018-12-20 09:53:45 +0200
committerKalle Valo <kvalo@codeaurora.org>2018-12-20 19:06:40 +0200
commit27120f2ac995d83fef383fb20e492037ecf09259 (patch)
tree30b3e3d91e53b91a2b6243fa2a528c45bbe4e8fd /drivers/net/wireless/ath/ath10k/wmi.c
parentath10k: move non-fatal warn logs to dbg level (diff)
downloadlinux-dev-27120f2ac995d83fef383fb20e492037ecf09259.tar.xz
linux-dev-27120f2ac995d83fef383fb20e492037ecf09259.zip
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>
Diffstat (limited to 'drivers/net/wireless/ath/ath10k/wmi.c')
-rw-r--r--drivers/net/wireless/ath/ath10k/wmi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath10k/wmi.c b/drivers/net/wireless/ath/ath10k/wmi.c
index 9b41cec6d887..3d59d7d73f4b 100644
--- a/drivers/net/wireless/ath/ath10k/wmi.c
+++ b/drivers/net/wireless/ath/ath10k/wmi.c
@@ -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));