diff options
author | Santha Meena Ramamoorthy <santhameena13@gmail.com> | 2018-03-02 02:34:03 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-03-06 04:01:11 -0800 |
commit | 537da5127842c7297ccaba04a23c38f507cd5b5c (patch) | |
tree | 12e4df492e2130dbebbb35d53d861f5ecc337633 | |
parent | c51afd2d87fe709faf7cfee0ceae5ea3fc6a8aeb (diff) |
staging: rtlwifi: remove condition where it has no effect
Remove condition where if and else branch are identical.
Issue found using cond_no_effect.cocci Coccinelle script.
Signed-off-by: Santha Meena Ramamoorthy <santhameena13@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/rtlwifi/btcoexist/halbtc8822b2ant.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/staging/rtlwifi/btcoexist/halbtc8822b2ant.c b/drivers/staging/rtlwifi/btcoexist/halbtc8822b2ant.c index ffff5b062672..5b826403ed66 100644 --- a/drivers/staging/rtlwifi/btcoexist/halbtc8822b2ant.c +++ b/drivers/staging/rtlwifi/btcoexist/halbtc8822b2ant.c @@ -2885,12 +2885,8 @@ static void halbtc8822b2ant_action_a2dp(struct btc_coexist *btcoexist) NORMAL_EXEC, 5); } else { - if (wifi_turbo) - halbtc8822b2ant_coex_table_with_type( - btcoexist, NORMAL_EXEC, 10); - else - halbtc8822b2ant_coex_table_with_type( - btcoexist, NORMAL_EXEC, 10); + halbtc8822b2ant_coex_table_with_type(btcoexist, + NORMAL_EXEC, 10); halbtc8822b2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 109); |