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

staging: rtl8723bs: hal: remove duplicate check

Remove 'bPerformance' from if condition check. As on previous
if condition it is already check for same variable.

Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Saurav Girepunje <saurav.girepunje@gmail.com>
Link: https://lore.kernel.org/r/YWKRfYpTioAmTWa0@user
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Saurav Girepunje and committed by
Greg Kroah-Hartman
98f668b3 a1f42cba

+1 -1
+1 -1
drivers/staging/rtl8723bs/hal/odm_DIG.c
··· 544 544 /* 1 Adjust initial gain by false alarm */ 545 545 if (pDM_Odm->bLinked && bPerformance) { 546 546 547 - if (bFirstTpTarget || (FirstConnect && bPerformance)) { 547 + if (bFirstTpTarget || FirstConnect) { 548 548 pDM_DigTable->LargeFAHit = 0; 549 549 550 550 if (pDM_Odm->RSSI_Min < DIG_MaxOfMin) {