Fixes the following W=1 kernel build warning(s):

 drivers/staging/rtl8723bs/hal/sdio_halinit.c: In function 
‘_ReadAdapterInfo8723BS’:
 drivers/staging/rtl8723bs/hal/sdio_halinit.c:1170:16: warning: variable 
‘start’ set but not used [-Wunused-but-set-variable]

Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org>
Cc: Fabio Aiuto <fabioaiut...@gmail.com>
Cc: Stanley@BB.SD3
Cc: linux-stag...@lists.linux.dev
Signed-off-by: Lee Jones <lee.jo...@linaro.org>
---
 drivers/staging/rtl8723bs/hal/sdio_halinit.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/rtl8723bs/hal/sdio_halinit.c 
b/drivers/staging/rtl8723bs/hal/sdio_halinit.c
index 2098384efe927..f6d734dd1a24f 100644
--- a/drivers/staging/rtl8723bs/hal/sdio_halinit.c
+++ b/drivers/staging/rtl8723bs/hal/sdio_halinit.c
@@ -1153,7 +1153,7 @@ static void _InitOtherVariable(struct adapter *Adapter)
 static s32 _ReadAdapterInfo8723BS(struct adapter *padapter)
 {
        u8 val8;
-       unsigned long start;
+       unsigned long __maybe_unused start;
 
        /*  before access eFuse, make sure card enable has been called */
        if (!padapter->hw_init_completed)
-- 
2.27.0

Reply via email to