net: wireless: ath10k: Fix null check warnings
authorStricted <info@stricted.net>
Sat, 19 Jun 2021 23:14:08 +0000 (23:14 +0000)
committerNolen Johnson <johnsonnolen@gmail.com>
Tue, 21 Dec 2021 18:35:25 +0000 (13:35 -0500)
Change-Id: If6625cd0ddb96f6c056a8068efe033c69dc80bc3

drivers/net/wireless/ath/ath10k/wmi.c

index af3bc06b4aeda69ba67f997000752a9ad8915c64..e7749ca8ded2cee08f4caf79a165510aed7f1105 100644 (file)
@@ -5903,13 +5903,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)