From: Stricted Date: Sat, 19 Jun 2021 23:14:08 +0000 (+0000) Subject: net: wireless: ath10k: Fix null check warnings X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4cb6d91f08c61f28cc3ca099d06bba61aedb7441;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git net: wireless: ath10k: Fix null check warnings Change-Id: If6625cd0ddb96f6c056a8068efe033c69dc80bc3 --- diff --git a/drivers/net/wireless/ath/ath10k/wmi.c b/drivers/net/wireless/ath/ath10k/wmi.c index bbfe7be214e1..3df87bc3b760 100644 --- a/drivers/net/wireless/ath/ath10k/wmi.c +++ b/drivers/net/wireless/ath/ath10k/wmi.c @@ -5889,13 +5889,13 @@ static struct sk_buff *ath10k_wmi_10_4_op_gen_init(struct ath10k *ar) int ath10k_wmi_start_scan_verify(const struct wmi_start_scan_arg *arg) { - if (arg->ie_len && !arg->ie) + if (arg->ie_len && arg->ie == NULL) return -EINVAL; - if (arg->n_channels && !arg->channels) + if (arg->n_channels && arg->channels == NULL) return -EINVAL; - if (arg->n_ssids && !arg->ssids) + if (arg->n_ssids && arg->ssids == NULL) return -EINVAL; - if (arg->n_bssids && !arg->bssids) + if (arg->n_bssids && arg->bssids == NULL) return -EINVAL; if (arg->ie_len > WLAN_SCAN_PARAMS_MAX_IE_LEN)