[PATCH] staging: rtl8723bs: remove redundant statements

2020-11-21 Thread xiakaixu1987
From: Kaixu Xia 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 Signed-off-by: Kaixu Xia --- drivers/staging/rtl8723bs/hal/HalPhyRf_8723B.c | 7 +-- 1 file changed, 1 inserti

[PATCH] staging: rtl8188eu: clean up the useless code

2020-11-15 Thread xiakaixu1987
From: Kaixu Xia The two bool variables singletone and carrier_sup are always false and the following if statement can't be true, these code are useless, so remove them. Reported-by: Tosk Robot Signed-off-by: Kaixu Xia --- drivers/staging/rtl8188eu/hal/phy.c | 7 --- 1 file changed, 7 dele