mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-06 00:47:56 -04:00
staging: r8188eu: remove unused IntrMask
The IntrMask array is set but never read. Remove it. Acked-by: Michael Straube <straube.linux@gmail.com> Signed-off-by: Martin Kaiser <martin@kaiser.cx> Link: https://lore.kernel.org/r/20211005200821.19783-4-martin@kaiser.cx Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
082690bd8b
commit
4864ad2200
@@ -119,18 +119,15 @@ static void _InitInterrupt(struct adapter *Adapter)
|
||||
{
|
||||
u32 imr, imr_ex;
|
||||
u8 usb_opt;
|
||||
struct hal_data_8188e *haldata = GET_HAL_DATA(Adapter);
|
||||
|
||||
/* HISR write one to clear */
|
||||
rtw_write32(Adapter, REG_HISR_88E, 0xFFFFFFFF);
|
||||
/* HIMR - */
|
||||
imr = IMR_PSTIMEOUT_88E | IMR_TBDER_88E | IMR_CPWM_88E | IMR_CPWM2_88E;
|
||||
rtw_write32(Adapter, REG_HIMR_88E, imr);
|
||||
haldata->IntrMask[0] = imr;
|
||||
|
||||
imr_ex = IMR_TXERR_88E | IMR_RXERR_88E | IMR_TXFOVW_88E | IMR_RXFOVW_88E;
|
||||
rtw_write32(Adapter, REG_HIMRE_88E, imr_ex);
|
||||
haldata->IntrMask[1] = imr_ex;
|
||||
|
||||
/* REG_USB_SPECIAL_OPTION - BIT(4) */
|
||||
/* 0; Use interrupt endpoint to upload interrupt pkt */
|
||||
|
||||
@@ -356,7 +356,6 @@ struct hal_data_8188e {
|
||||
|
||||
/* Interrupt relatd register information. */
|
||||
u32 IntArray[3];/* HISR0,HISR1,HSISR */
|
||||
u32 IntrMask[3];
|
||||
u8 C2hArray[16];
|
||||
u8 UsbTxAggMode;
|
||||
u8 UsbTxAggDescNum;
|
||||
|
||||
Reference in New Issue
Block a user