[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200426094334.24346-1-yanaijie@huawei.com>
Date: Sun, 26 Apr 2020 17:43:34 +0800
From: Jason Yan <yanaijie@...wei.com>
To: <gregkh@...uxfoundation.org>, <hariprasad.kelam@...il.com>,
<devel@...verdev.osuosl.org>, <linux-kernel@...r.kernel.org>
CC: Jason Yan <yanaijie@...wei.com>, Hulk Robot <hulkci@...wei.com>
Subject: [PATCH] staging: rtl8723bs: remove set but not used 'pregistrypriv'
Fix the following gcc warning:
drivers/staging/rtl8723bs/hal/sdio_halinit.c:547:24: warning: variable
‘pregistrypriv’ set but not used [-Wunused-but-set-variable]
struct registry_priv *pregistrypriv;
^~~~~~~~~~~~~
Reported-by: Hulk Robot <hulkci@...wei.com>
Signed-off-by: Jason Yan <yanaijie@...wei.com>
---
drivers/staging/rtl8723bs/hal/sdio_halinit.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/drivers/staging/rtl8723bs/hal/sdio_halinit.c b/drivers/staging/rtl8723bs/hal/sdio_halinit.c
index 7853af53051d..e42d8c18e1ae 100644
--- a/drivers/staging/rtl8723bs/hal/sdio_halinit.c
+++ b/drivers/staging/rtl8723bs/hal/sdio_halinit.c
@@ -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;
--
2.21.1
Powered by blists - more mailing lists