Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: rtl8723bs: remove unused variable 'start' in hal/sdio_halinit.c

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>

authored by

Fabio Aiuto and committed by
Greg Kroah-Hartman
5a04ad1d a2e2a05d

-4
-4
drivers/staging/rtl8723bs/hal/sdio_halinit.c
··· 1153 1153 static s32 _ReadAdapterInfo8723BS(struct adapter *padapter) 1154 1154 { 1155 1155 u8 val8; 1156 - unsigned long start; 1157 1156 1158 1157 /* before access eFuse, make sure card enable has been called */ 1159 1158 if (!padapter->hw_init_completed) ··· 1162 1163 val8 = rtw_read8(padapter, 0x4e); 1163 1164 val8 |= BIT(6); 1164 1165 rtw_write8(padapter, 0x4e, val8); 1165 - 1166 - 1167 - start = jiffies; 1168 1166 1169 1167 _EfuseCellSel(padapter); 1170 1168 _ReadRFType(padapter);