Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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));