Staging: rtl8723bs: sdio_halinit: Remove unnecessary conditions
authorShreeya Patel <shreeya.patel23498@gmail.com>
Fri, 13 Mar 2020 10:49:20 +0000 (16:19 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Mar 2020 11:39:40 +0000 (12:39 +0100)
Remove if and else conditions since both are leading to the
initialization of "valueDMATimeout" and "valueDMAPageCount" with
the same value.

Found using coccinelle script.

Signed-off-by: Shreeya Patel <shreeya.patel23498@gmail.com>
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20200313104920.19974-1-shreeya.patel23498@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/hal/sdio_halinit.c

index e813382..4894f7d 100644 (file)
@@ -551,18 +551,8 @@ static void HalRxAggr8723BSdio(struct adapter *padapter)
 
        pregistrypriv = &padapter->registrypriv;
 
-       if (pregistrypriv->wifi_spec) {
-               /*  2010.04.27 hpfan */
-               /*  Adjust RxAggrTimeout to close to zero disable RxAggr, suggested by designer */
-               /*  Timeout value is calculated by 34 / (2^n) */
-               valueDMATimeout = 0x06;
-               valueDMAPageCount = 0x06;
-       } else {
-               /*  20130530, Isaac@SD1 suggest 3 kinds of parameter */
-               /*  TX/RX Balance */
-               valueDMATimeout = 0x06;
-               valueDMAPageCount = 0x06;
-       }
+       valueDMATimeout = 0x06;
+       valueDMAPageCount = 0x06;
 
        rtw_write8(padapter, REG_RXDMA_AGG_PG_TH + 1, valueDMATimeout);
        rtw_write8(padapter, REG_RXDMA_AGG_PG_TH, valueDMAPageCount);