ath10k: remove unnecessary code
Subsystems (3)
PATCH v2 1/1 ath10k: remove unnecessary code
The array fields in struct wmi_start_scan_arg that are checked here are fixed size arrays so they can never be NULL.
Addresses-Coverity-ID: 1260031
Cc Arend Van Spriel <[email protected]>
Cc Kalle Valo <[email protected]>
Signed-off-by Gustavo A. R. Silva <[email protected]>
---
Changes in v2:
Rephrase commit log.
drivers/net/wireless/ath/ath10k/wmi.c | 9 --------- 1 file changed, 9 deletions(-)
drivers/net/wireless/ath/ath10k/wmi.c +0 -9
@@ -5933,15 +5933,6 @@ 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) -return -EINVAL ; -if (arg->n_channels && !arg->channels) -return -EINVAL ; -if (arg->n_ssids && !arg->ssids) -return -EINVAL ; -if (arg->n_bssids && !arg->bssids) -return -EINVAL ; -if (arg->ie_len >WLAN_SCAN_PARAMS_MAX_IE_LEN )return -EINVAL ;if (arg->n_channels >ARRAY_SIZE (arg->channels))
Signature · 1 line
2.5.0
Quoted 7 lines · Gustavo A. R. Silva
The array fields in struct
wmi_start_scan_argthat are checked here are fixed size arrays so they can never be NULL.Addresses-Coverity-ID: 1260031
Cc Arend Van Spriel <[email protected]>Cc Kalle Valo <[email protected]>Signed-off-by Gustavo A. R. Silva <[email protected]>
Patch applied to ath-next branch of ath.git, thanks.
8c1f20815231 ath10k: remove unnecessary code
Signature · 3 lines
https://patchwork.kernel.org/patch/9717869/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches