staging: rtl8723bs: hal: remove duplicate check
authorSaurav Girepunje <saurav.girepunje@gmail.com>
Sun, 10 Oct 2021 07:08:45 +0000 (12:38 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 10 Oct 2021 13:00:05 +0000 (15:00 +0200)
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>
drivers/staging/rtl8723bs/hal/odm_DIG.c

index beda7b8a7c6a51bbce628f1951817f7fe304f836..7e92c373cddbe966c258194fb4b221b948855720 100644 (file)
@@ -544,7 +544,7 @@ void odm_DIG(void *pDM_VOID)
        /* 1 Adjust initial gain by false alarm */
        if (pDM_Odm->bLinked && bPerformance) {
 
-               if (bFirstTpTarget || (FirstConnect && bPerformance)) {
+               if (bFirstTpTarget || FirstConnect) {
                        pDM_DigTable->LargeFAHit = 0;
 
                        if (pDM_Odm->RSSI_Min < DIG_MaxOfMin) {