staging: rtl8723bs: remove unused variable 'start' in hal/sdio_halinit.c
authorFabio Aiuto <fabioaiuto83@gmail.com>
Sun, 11 Apr 2021 12:57:37 +0000 (14:57 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 12 Apr 2021 09:39:20 +0000 (11:39 +0200)
fix following W=1 compiler issue:

drivers/staging/rtl8723bs/hal/sdio_halinit.c:
In function '_ReadAdapterInfo8723BS':
drivers/staging/rtl8723bs/hal/sdio_halinit.c:1156:16:
warning: variable 'start' set but not used [-Wunused-but-set-variable]
1156 |  unsigned long start;
     |                ^~~~~

Signed-off-by: Fabio Aiuto <fabioaiuto83@gmail.com>
Link: https://lore.kernel.org/r/ce1faa15052b519738656e11658dee93f9e91c29.1618145345.git.fabioaiuto83@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/hal/sdio_halinit.c

index 2098384..abd9002 100644 (file)
@@ -1153,7 +1153,6 @@ static void _InitOtherVariable(struct adapter *Adapter)
 static s32 _ReadAdapterInfo8723BS(struct adapter *padapter)
 {
        u8 val8;
-       unsigned long start;
 
        /*  before access eFuse, make sure card enable has been called */
        if (!padapter->hw_init_completed)
@@ -1164,9 +1163,6 @@ static s32 _ReadAdapterInfo8723BS(struct adapter *padapter)
        val8 |= BIT(6);
        rtw_write8(padapter, 0x4e, val8);
 
-
-       start = jiffies;
-
        _EfuseCellSel(padapter);
        _ReadRFType(padapter);
        _ReadPROMContent(padapter);