ath10k: remove unnecessary code 78/292578/1
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Fri, 19 May 2017 08:54:00 +0000 (11:54 +0300)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Mon, 8 May 2023 09:39:38 +0000 (18:39 +0900)
commit082e5502bc738c0e09dd9eadf1c8ca916e56aa5f
treeb806c28d149f3c6fece5627532dff3474c705995
parent60ed042ce5fd41a917a24ac94b1480032eae35bb
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 <arend.vanspriel@broadcom.com>
Cc: Kalle Valo <kvalo@qca.qualcomm.com>
Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
[sw0312.kim: backport upstream commit 8c1f20815231 to resolve gcc-12 build issue]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: Ie7096cc6bd0bc8280c44bf124e49aa06e49b9bd9
drivers/net/wireless/ath/ath10k/wmi.c