]> git.baikalelectronics.ru Git - kernel.git/commitdiff
staging: rtl8723bs: remove unused variable 'pregistrypriv'
authorYueHaibing <yuehaibing@huawei.com>
Tue, 21 Apr 2020 02:41:45 +0000 (10:41 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Apr 2020 11:27:55 +0000 (13:27 +0200)
drivers/staging/rtl8723bs/hal/sdio_halinit.c: In function HalRxAggr8723BSdio:
drivers/staging/rtl8723bs/hal/sdio_halinit.c:547:24: warning: variable pregistrypriv set but not used [-Wunused-but-set-variable]

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Link: https://lore.kernel.org/r/20200421024145.43576-1-yuehaibing@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/hal/sdio_halinit.c

index 7853af53051d07d6d8c8a19ded2f257bab8d20d5..e42d8c18e1aeba8cca74ca347e90ae555793c5ec 100644 (file)
@@ -544,13 +544,9 @@ static void _InitRetryFunction(struct adapter *padapter)
 
 static void HalRxAggr8723BSdio(struct adapter *padapter)
 {
-       struct registry_priv *pregistrypriv;
        u8 valueDMATimeout;
        u8 valueDMAPageCount;
 
-
-       pregistrypriv = &padapter->registrypriv;
-
        valueDMATimeout = 0x06;
        valueDMAPageCount = 0x06;