diff options
author | Kaixu Xia <[email protected]> | 2020-11-21 20:17:21 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2020-11-23 17:59:52 +0100 |
commit | 8a3f7b9665c8194f32afec9a7bb60e2376f896c6 (patch) | |
tree | f6a70a3ab355fb5c6cbaf89325b14ea11a3f26ae | |
parent | 9822b90444000b81d450e42a04a044f077c1d0c9 (diff) |
staging: rtl8723bs: remove redundant statements
The bool variable is2T is true, so the if statement is redundant.
we can directly set the variable bound to 8 and remove the if
statement.
Reported-by: Tosk Robot <[email protected]>
Signed-off-by: Kaixu Xia <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
-rw-r--r-- | drivers/staging/rtl8723bs/hal/HalPhyRf_8723B.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/staging/rtl8723bs/hal/HalPhyRf_8723B.c b/drivers/staging/rtl8723bs/hal/HalPhyRf_8723B.c index 85ea535dd6e9..645f4f2a835e 100644 --- a/drivers/staging/rtl8723bs/hal/HalPhyRf_8723B.c +++ b/drivers/staging/rtl8723bs/hal/HalPhyRf_8723B.c @@ -1407,14 +1407,9 @@ static bool phy_SimularityCompare_8723B( u32 i, j, diff, SimularityBitMap, bound = 0; u8 final_candidate[2] = {0xFF, 0xFF}; /* for path A and path B */ bool bResult = true; - bool is2T = true; s32 tmp1 = 0, tmp2 = 0; - if (is2T) - bound = 8; - else - bound = 4; - + bound = 8; SimularityBitMap = 0; for (i = 0; i < bound; i++) { |