Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <tencent_os_robot@tencent.com>
Signed-off-by: Kaixu Xia <kaixuxia@tencent.com>
Link: https://lore.kernel.org/r/1605961041-12875-1-git-send-email-kaixuxia@tencent.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Kaixu Xia and committed by
Greg Kroah-Hartman
8a3f7b96 9822b904

+1 -6
+1 -6
drivers/staging/rtl8723bs/hal/HalPhyRf_8723B.c
··· 1407 1407 u32 i, j, diff, SimularityBitMap, bound = 0; 1408 1408 u8 final_candidate[2] = {0xFF, 0xFF}; /* for path A and path B */ 1409 1409 bool bResult = true; 1410 - bool is2T = true; 1411 1410 s32 tmp1 = 0, tmp2 = 0; 1412 1411 1413 - if (is2T) 1414 - bound = 8; 1415 - else 1416 - bound = 4; 1417 - 1412 + bound = 8; 1418 1413 SimularityBitMap = 0; 1419 1414 1420 1415 for (i = 0; i < bound; i++) {