Commit d56b69c4 authored by Zhen Lei's avatar Zhen Lei Committed by Kalle Valo

rtlwifi: btcoex: 21a 2ant: Delete several duplicate condition branch codes

The statements of the "if (max_interval == 3)" branch are the same as
those of the "else" branch. Delete them to simplify the code.

No functional change.
Signed-off-by: default avatarZhen Lei <thunder.leizhen@huawei.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20210510082237.3315-1-thunder.leizhen@huawei.com
parent 29ca9e6c
...@@ -1721,10 +1721,6 @@ static void btc8821a2ant_tdma_duration_adjust(struct btc_coexist *btcoexist, ...@@ -1721,10 +1721,6 @@ static void btc8821a2ant_tdma_duration_adjust(struct btc_coexist *btcoexist,
btc8821a2ant_ps_tdma(btcoexist, btc8821a2ant_ps_tdma(btcoexist,
NORMAL_EXEC, true, 14); NORMAL_EXEC, true, 14);
coex_dm->ps_tdma_du_adj_type = 14; coex_dm->ps_tdma_du_adj_type = 14;
} else if (max_interval == 3) {
btc8821a2ant_ps_tdma(btcoexist,
NORMAL_EXEC, true, 15);
coex_dm->ps_tdma_du_adj_type = 15;
} else { } else {
btc8821a2ant_ps_tdma(btcoexist, btc8821a2ant_ps_tdma(btcoexist,
NORMAL_EXEC, true, 15); NORMAL_EXEC, true, 15);
...@@ -1739,10 +1735,6 @@ static void btc8821a2ant_tdma_duration_adjust(struct btc_coexist *btcoexist, ...@@ -1739,10 +1735,6 @@ static void btc8821a2ant_tdma_duration_adjust(struct btc_coexist *btcoexist,
btc8821a2ant_ps_tdma(btcoexist, btc8821a2ant_ps_tdma(btcoexist,
NORMAL_EXEC, true, 10); NORMAL_EXEC, true, 10);
coex_dm->ps_tdma_du_adj_type = 10; coex_dm->ps_tdma_du_adj_type = 10;
} else if (max_interval == 3) {
btc8821a2ant_ps_tdma(btcoexist,
NORMAL_EXEC, true, 11);
coex_dm->ps_tdma_du_adj_type = 11;
} else { } else {
btc8821a2ant_ps_tdma(btcoexist, btc8821a2ant_ps_tdma(btcoexist,
NORMAL_EXEC, true, 11); NORMAL_EXEC, true, 11);
...@@ -1759,10 +1751,6 @@ static void btc8821a2ant_tdma_duration_adjust(struct btc_coexist *btcoexist, ...@@ -1759,10 +1751,6 @@ static void btc8821a2ant_tdma_duration_adjust(struct btc_coexist *btcoexist,
btc8821a2ant_ps_tdma(btcoexist, btc8821a2ant_ps_tdma(btcoexist,
NORMAL_EXEC, true, 6); NORMAL_EXEC, true, 6);
coex_dm->ps_tdma_du_adj_type = 6; coex_dm->ps_tdma_du_adj_type = 6;
} else if (max_interval == 3) {
btc8821a2ant_ps_tdma(btcoexist,
NORMAL_EXEC, true, 7);
coex_dm->ps_tdma_du_adj_type = 7;
} else { } else {
btc8821a2ant_ps_tdma(btcoexist, btc8821a2ant_ps_tdma(btcoexist,
NORMAL_EXEC, true, 7); NORMAL_EXEC, true, 7);
...@@ -1777,10 +1765,6 @@ static void btc8821a2ant_tdma_duration_adjust(struct btc_coexist *btcoexist, ...@@ -1777,10 +1765,6 @@ static void btc8821a2ant_tdma_duration_adjust(struct btc_coexist *btcoexist,
btc8821a2ant_ps_tdma(btcoexist, btc8821a2ant_ps_tdma(btcoexist,
NORMAL_EXEC, true, 2); NORMAL_EXEC, true, 2);
coex_dm->ps_tdma_du_adj_type = 2; coex_dm->ps_tdma_du_adj_type = 2;
} else if (max_interval == 3) {
btc8821a2ant_ps_tdma(btcoexist,
NORMAL_EXEC, true, 3);
coex_dm->ps_tdma_du_adj_type = 3;
} else { } else {
btc8821a2ant_ps_tdma(btcoexist, btc8821a2ant_ps_tdma(btcoexist,
NORMAL_EXEC, true, 3); NORMAL_EXEC, true, 3);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment