wifi: rtl8xxxu: fix mixed declarations in rtl8xxxu_set_aifs()
authorShiji Yang <yangshiji66@outlook.com>
Fri, 23 Feb 2024 13:34:32 +0000 (21:34 +0800)
committerKalle Valo <kvalo@kernel.org>
Wed, 28 Feb 2024 11:37:59 +0000 (13:37 +0200)
commita7e178259c5bc900da762b33d3a20b7ee1206f07
treeaf8930a36c175783c6111b3bbd7ce3f1bc4dea19
parent5a391813e7ef5f12a55e3266a6832732916c7c10
wifi: rtl8xxxu: fix mixed declarations in rtl8xxxu_set_aifs()

Moving struct ieee80211_sta *sta variable definition to the front
of the code to fix the ISO C90 forbids mixed declarations and code
warning.

Fixes: 43532c050f8e ("wifi: rtl8xxxu: support multiple interfaces in set_aifs()")
Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Reviewed-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://msgid.link/TYAP286MB03157A408E0D69F2F6FBD88ABC552@TYAP286MB0315.JPNP286.PROD.OUTLOOK.COM
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c