]> git.baikalelectronics.ru Git - kernel.git/commit
rtlwifi: rtl8821ae: replace _rtl8821ae_mrate_idx_to_arfr_id with generic version
authorColin Ian King <colin.king@canonical.com>
Mon, 8 Oct 2018 08:50:28 +0000 (09:50 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Sat, 13 Oct 2018 12:00:37 +0000 (15:00 +0300)
commita4d42c5e5a9753d025ba590f25bae4b69c2f4a33
tree7ebe8b503fc7094835070a5118df030dc4edf7b7
parentdd67093e21ad8872dad2255302d568634dfa18c8
rtlwifi: rtl8821ae: replace _rtl8821ae_mrate_idx_to_arfr_id with generic version

Function _rtl8821ae_mrate_idx_to_arfr_id is functionally identical to
the generic version rtl_mrate_idx_to_arfr_id, so remove
_rtl8821ae_mrate_idx_to_arfr_id and use the generic one instead.

This also fixes a missing break statement found by CoverityScan in
_rtl8821ae_mrate_idx_to_arfr_id, namely: CID#1167237 ("Missing break
in switch")

Thanks to Joe Perches for spotting this when I submitted an earlier patch.

Fixes: b4cfaaa31290 ("Staging: rtl8812ae: Add Realtek 8821 PCI WIFI driver")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
ACKed-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/hw.c