rtlwifi: rtl8723be: fix duplicated code for different branches
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Wed, 30 Aug 2017 17:04:24 +0000 (12:04 -0500)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 31 Aug 2017 12:59:23 +0000 (15:59 +0300)
commita9a65a6b2b69e51f453fe26eeba1e45a720bbb05
tree1fa1ac576d5812045ee369a9586eeb0cef52f1fa
parentf38966a7ace842afd3a9bf5d0fb56640f49df60c
rtlwifi: rtl8723be: fix duplicated code for different branches

Refactor code in order to avoid identical code for different branches.

Addresses-Coverity-ID: 1248728
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Acked-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c