OSDN Git Service

rtlwifi: btcoex: 23b 1ant: fix duplicated code for different branches
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Fri, 18 Aug 2017 00:22:19 +0000 (19:22 -0500)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 24 Aug 2017 09:52:22 +0000 (12:52 +0300)
commit14cc696c0a4aac823e41b9c29d04d1936cbf969c
treead77b143bf8cc3fd864672149a9a05d3fce7b8ae
parentd382b9c007827987c7939e2bd828af43c7af9668
rtlwifi: btcoex: 23b 1ant: fix duplicated code for different branches

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

This issue was detected with the help of Coccinelle.

Addresses-Coverity-ID: 1415177
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b1ant.c