wifi: mwifiex: Replace one-element array with flexible-array member in struct mwifiex...
authorGustavo A. R. Silva <gustavoars@kernel.org>
Fri, 25 Aug 2023 03:07:43 +0000 (21:07 -0600)
committerKalle Valo <kvalo@kernel.org>
Mon, 4 Sep 2023 17:16:12 +0000 (20:16 +0300)
commitc7847241de28c718285d0e1bd97d1061a4a806c8
tree69bdfc1d3eba9f8134d28814131e3e7459412d15
parenteec679e4ac5f47507774956fb3479c206e761af7
wifi: mwifiex: Replace one-element array with flexible-array member in struct mwifiex_ie_types_rxba_sync

One-element and zero-length arrays are deprecated. So, replace
one-element array in struct mwifiex_ie_types_rxba_sync with
flexible-array member, and refactor the rest of the code, accordingly.

This results in no differences in binary output.

Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/79c801c69c8beece2f80502c60166036d3c047cc.1692931954.git.gustavoars@kernel.org
drivers/net/wireless/marvell/mwifiex/11n_rxreorder.c
drivers/net/wireless/marvell/mwifiex/fw.h