]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
staging: rtl8723bs: remove unused SysIntrMask from struct hal_com_data
authorNikolay Kulikov <nikolayof23@gmail.com>
Tue, 12 May 2026 12:55:31 +0000 (15:55 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 21 May 2026 09:21:14 +0000 (11:21 +0200)
This field is set to 0 once, and its use becomes optional. Remove it to
clean up dead code.

Signed-off-by: Nikolay Kulikov <nikolayof23@gmail.com>
Link: https://patch.msgid.link/20260512125703.6878-2-nikolayof23@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/hal/sdio_ops.c
drivers/staging/rtl8723bs/include/hal_data.h

index 5d74913be573e50ff09be494fda6e369988374f4..0c0c243c46eb96daa1902cb5de00ea6b3f107d02 100644 (file)
@@ -592,8 +592,6 @@ void InitSysInterrupt8723BSdio(struct adapter *adapter)
        struct hal_com_data *haldata;
 
        haldata = GET_HAL_DATA(adapter);
-
-       haldata->SysIntrMask = (0);
 }
 
 /*
@@ -616,7 +614,7 @@ void rtw_sdio_enable_interrupt(struct adapter *adapter)
 
        /*  Update current system IMR settings */
        tmp = rtw_read32(adapter, REG_HSIMR);
-       rtw_write32(adapter, REG_HSIMR, tmp | haldata->SysIntrMask);
+       rtw_write32(adapter, REG_HSIMR, tmp);
 
        /*  */
        /*  <Roger_Notes> There are some C2H CMDs have been sent before system interrupt is enabled, e.g., C2H, CPWM. */
index bc9d8c945f38ff6c2b98a828eb10e80424ec9323..d3e5c40396937a088ee9855fc09b41e388f9318e 100644 (file)
@@ -389,7 +389,6 @@ struct hal_com_data {
 
        /*  Interrupt related register information. */
        u32             SysIntrStatus;
-       u32             SysIntrMask;
 
        /* Chip version information */
        bool chip_normal;       /* true - normal chip, false - test chip */