Commit 8a3f7b96 authored by Kaixu Xia's avatar Kaixu Xia Committed by Greg Kroah-Hartman

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: default avatarTosk Robot <tencent_os_robot@tencent.com>
Signed-off-by: default avatarKaixu Xia <kaixuxia@tencent.com>
Link: https://lore.kernel.org/r/1605961041-12875-1-git-send-email-kaixuxia@tencent.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9822b904
...@@ -1407,14 +1407,9 @@ static bool phy_SimularityCompare_8723B( ...@@ -1407,14 +1407,9 @@ static bool phy_SimularityCompare_8723B(
u32 i, j, diff, SimularityBitMap, bound = 0; u32 i, j, diff, SimularityBitMap, bound = 0;
u8 final_candidate[2] = {0xFF, 0xFF}; /* for path A and path B */ u8 final_candidate[2] = {0xFF, 0xFF}; /* for path A and path B */
bool bResult = true; bool bResult = true;
bool is2T = true;
s32 tmp1 = 0, tmp2 = 0; s32 tmp1 = 0, tmp2 = 0;
if (is2T) bound = 8;
bound = 8;
else
bound = 4;
SimularityBitMap = 0; SimularityBitMap = 0;
for (i = 0; i < bound; i++) { for (i = 0; i < bound; i++) {
......
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