staging: rtlwifi: remove condition where it has no effect
authorSantha Meena Ramamoorthy <santhameena13@gmail.com>
Fri, 2 Mar 2018 10:34:03 +0000 (02:34 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 6 Mar 2018 12:01:11 +0000 (04:01 -0800)
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>
drivers/staging/rtlwifi/btcoexist/halbtc8822b2ant.c

index ffff5b062672a839112b2c541017f1a29eb8d34f..5b826403ed6627d5c0acc3b09d00654444c756c9 100644 (file)
@@ -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);